Recently I got the following error while running existing Ansible playbook, which run successfully before :
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "env: python: No such file or directory\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}
Ansible complains about python not found. I am using Homebrew python.
which python
python: aliased to python3
which python3
/opt/homebrew/bin/python3
https://stackoverflow.com/questions/3655306/ubuntu-usr-bin-env-python-no-such-file-or-directory
Just create symbolic link for python, required by Ansible:
ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python
No comments:
Post a Comment