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

Fix FileNotFoundError: [Errno 2] No such file or directory: 'python': 'python' #95

Open
phavekes opened this issue Nov 11, 2019 · 0 comments

Comments

@phavekes
Copy link
Member

phavekes commented Nov 11, 2019

If the host system has no /usr/bin/python, the task
TASK [stepup-ra : Put parameters.yml, samlstepupproviders(_parameters).yml and global_view_parameters.yml]

will fail with error message:
failed: [app.host.domain.tld] (item=parameters.yml) => {"ansible_loop_var": "item", "changed": false, "item": "parameters.yml", "msg": "FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python': '/usr/bin/python'"}

A workaround is adding a symlink to python2, but it should be
corrected by detecting the correct location for the python2 interperter in filter_plugins/custom_plugins.py

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

No branches or pull requests

1 participant