Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for Ansible control hosts that do not have Python installed in /usr/bin/python. #653

Merged

Conversation

pneerincx
Copy link
Contributor

Ansible will fail if it cannot find Python in /usr/bin/python when using connection: local. Recent versions of macOS removed Python 2 from /usr/bin/python and only have a /usr/bin/python3. The workaround is to

  • Create a symlink .../python3 -> .../python somewhere in a location that is listed in your $PATH
  • Make sure Ansible will look for /usr/bin/env python instead of /usr/bin/python, which is arranged in this PR.

@pneerincx pneerincx requested review from scimerman, marieke-bijlsma, erijpkema and Gerbenvandervries and removed request for scimerman October 13, 2022 15:18
@marieke-bijlsma marieke-bijlsma merged commit 4f23b82 into rug-cit-hpc:develop Oct 14, 2022
@pneerincx pneerincx deleted the fix/python_interpreter branch October 14, 2022 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants