Receiving an error like this:
root@r6-410-1:/home/ubuntu# ansible all -i tmp -m setup --tree /tmp/facts 192.168.6.29 | FAILED! => { "changed": false, "failed": true, "module_stderr": "Shared connection to 192.168.6.29 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 0 }
Go to your inventory file and add this:
ansible_python_interpreter=/usr/bin/python3 So your inventory file might look something like this now: 192.168.6.29 ansible_python_interpreter=/usr/bin/python3 Your comment will be posted after it is approved.
Leave a Reply. |
AuthorJames Benson is an IT professional. Archives
August 2022
Categories
All
|