Description of problem: When become_method=su I always get connection timeout: fatal: [192.168.150.77]: FAILED! => {"failed": true, "msg": "Timeout (12s) waiting for privilege escalation prompt: "} Version-Release number of selected component (if applicable): ansible-2.3.0.0-3.el6.noarch How reproducible: Always Additional info: https://github.com/ansible/ansible/issues/23689
ansible-2.3.1.0-1.el6.noarch in epel-testing does not fix this issue
It looks like 2.3.1 fixed some cases of this, but not all.
Ok, today I have discovered that ansible-2.3.1.0-1.el6.noarch only fails in our dev machine. It must be broken somehow, maybe some "sudo pip install" has messed the libraries. I've installed a new centos6 box and I get no timeouts launching the playbooks from there. You can close this bug. Thank you.
ok, Thanks for looking into it further and testing!
I've discovered what was causing the problems in my machine. I call a custom script to set the tmux window titles to the hostname I'm connecting to, this must be interfering with the authentication. ~/.ssh/config: Host * LocalCommand /home/juan/bin/screen_ssh.sh $PPID %h %r PermitLocalCommand yes ServerAliveInterval 2 ServerAliveCountMax 5 Kind regards.