ansible/lib/ansible
jkleint 6341a9547f Actually wait for password prompt in remote sudo execution.
When running on lots of hosts with a large login banner on a slow network, it was still possible that the first recv() didn't to pull in the sudo password prompt, and sudo would fail intermittently.  This patch tells sudo to use a specific, randomly-generated prompt and then reads until it finds that prompt (or times out).  Only then is the password sent.  It also catches `socket.timeout` and thunks it to a more useful `AnsbileError` with the output of sudo so if something goes wrong you can see what's up.
2012-04-26 15:01:20 -03:00
..
__init__.py Version bump for integration branch (soon to be renamed 'devel'), didn't update package 2012-04-23 21:14:48 -04:00
callbacks.py Merge branch 'integration' 2012-04-23 21:05:06 -04:00
connection.py Actually wait for password prompt in remote sudo execution. 2012-04-26 15:01:20 -03:00
constants.py Add support for specifying sudo passwords to both ansible & playbook. Nopasswd sudo is no longer required. 2012-04-13 19:06:11 -04:00
errors.py Update example to use correct service state; minor pep8 indent/spacing fixes 2012-03-15 23:10:03 -04:00
inventory.py handle issues when the hostlist is inadvertently set executable 2012-04-24 11:03:14 -04:00
playbook.py fix for issue #230 - handle template taking 3 args 2012-04-25 11:59:19 -04:00
runner.py Merge pull request #226 from cread/make-osx-tests-pass 2012-04-24 15:22:43 -07:00
utils.py fix for issue #230 - handle template taking 3 args 2012-04-25 11:59:19 -04:00