I’m using ansible 2.2.0.0 and running in to a problem every time I use “sh”. I’ve run this same playbook against a vm on virtualbox on my local machine, but the user had very broad permissions. Now I’m trying to run against a remote server where the user has very limited permissions, so misleading message and a permissions problem is my best guess so far, but I can’t figure out what specific permission might be needed.
After keeping the temp files on the remote server, when I run $ python command.py there I get the following error:
Traceback (most recent call last):
File “/tmp/ansible_VG8VKH/ansible_module_command.py”, line 212, in
main()
File “/tmp/ansible_VG8VKH/ansible_module_command.py”, line 189, in main
rc, out, err = module.run_command(args, executable=executable, use_unsafe_shell=shell, encoding=None)
TypeError: run_command() got an unexpected keyword argument ‘encoding’
I’m not able to find the /tmp files at all after the command.py executes, so I haven’t been able to look there to see what might be going on…
Eric