Ansible Timeout (12s) waiting for privilege escalation prompt

Question:

I’m having trouble running my Ansible playbook on AWS instance. Here is my version:

I created an inventory file as:

Testing connection to my server:

Now when running my playbook on this inventory I get the error Timeout (12s) waiting for privilege escalation prompt as follows:

If I run the same playbook using the .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory as the inventory parameter it works perfectly on my Vagrant instance.(I believe, proving there is nothing wrong in the playbook/roles itself)

Also, if I run it with an -vvvv, copy the exec ssh line and run it manually it indeed connects to AWS without problems.

Do I need to add any other parameter on my inventory file to connect an EC2 instance? What am I missing?

Answer:

SSH timeout

Leave a Reply