}

Ansible: ERROR! Timeout (12s) waiting for privilege escalation prompt:

Created:

On random times you see this error:

FAILED! => {"failed": true, "msg": "ERROR! Timeout (12s) waiting for privilege escalation prompt: "}

Running the same playbook under Ansible 1.9.4, Issue seems to be on Ansible 2.0.

The issue rarely happens at the same task. The task itself doesn't matter -- it could be in a loop, not a loop, file copy, lineinefile, etc.

Another solution is set the timeout in ansible.cfg, the following has fixed the issue for 10+ server deploys using ansible 2.0.1.0:

[defaults]
timeout = 30

If this is still not working try to use -c paramiko.