Timeout waiting for privilege escalation prompt



  • When running playbooks or ad-hoc ansible commands you may receive this error.

    fatal: [198.168.50.23]: FAILED! => {"failed": true, "msg": "Timeout (17s) waiting for privilege escalation prompt: "}

    To resolve this edit the /etc/ansible/ansible.cfg file or your specific copy of it and change the ssh timeout parameter

    The default is 10 seconds, but commented out. Uncomment it and change it to a higher value, increment it in 5 seconds at a time to see if it works.

    # SSH timeout
    timeout = 25


Log in to reply
 

© Lightnetics 2024