I’m trying to run a simple playbook (actually it’s another one, but I created that for tests), but it keep giving me the error below in any server I’ve tried:
`
I’m trying to run a simple playbook (actually it’s another one, but I created that for tests), but it keep giving me the error below in any server I’ve tried:
`
I’m trying to run a simple playbook (actually it’s another one, but I created that for tests), but it keep giving me the error below in any server I’ve tried:
…$ ansible-playbook test.yml -i production/inventory --user=inadmin --ask-pass --su --ask-su-pass -vvvv
…
File “/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py”, line 337, in exec_command
elif sudo_errput.endswith(prompt):
TypeError: endswith first arg must be str, unicode, or tuple, not NoneType
I’ve just been struggling with the same problem. (using v 1.8.2).
What I have discovered is it is the extra verbose logging -vvvv that seems to cause the error. Try changing that to -vvv and see if it helps.