This question already has an answer here:
- Ansible fails with /bin/sh: 1: /usr/bin/python: not found 19 answers
Trying to run a playbook through the ansible provisioner on vagrant on an Ubuntu Xenial image but receiving the following error:
PLAY [all] *********************************************************************
TASK [setup] ******************************************************************* fatal: [default]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to 127.0.0.1 closed.\r\n", "module_stdout": "\r\n/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE"} to retry, use: --limit @/Users/user/Code/Vagrant/Ansible-Splunk-Ubuntu/test.retry
PLAY RECAP ********************************************************************* default : ok=0 changed=0 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.