Answer the question
In order to leave comments, you need to log in
What am I doing wrong with Ansible?
Good afternoon. I decided to dig deeper into Ansible, I'm trying to install NGINX on the desktop ubuntu 16.04. But I ran into such a problem
On the desktop, I set up key authentication, SSH connects from the server to the desktop, and vice versa. But the playbook still does not want to work, by mistake it is clear that the problem is in SHH access, but I searched everything possible. The server is running on real hardware, the desktop is on Hyper-V, and they are in the same subnet.
play book
Answer the question
In order to leave comments, you need to log in
check the permissions on the ~/.ssh directory and on the files inside it. I myself periodically encounter this, the easiest option is to do it
on both servers
SSH connects from a server to a desktop, and vice versa
try before starting the playbook to run the command:
If your key has a passphrase, it will ask you to enter it, if not, then the command will simply be executed. Further from the same user, launch the playbook.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question