-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Including ansible_python_interpreter='/usr/bin/env python' in inventory leads to module failure (OSError: [Errno 2] No such file or directory) #15635
Comments
Confirmed that this was working in almost all versions prior to 2.1.x. Looks like the issue is inside the python code template used for ziploader. A quick patch ...
|
@abadger - awesome, thanks - should I check this while it's on your branch or wait for it to get merged into devel? |
@jladdjr I've just merged it, go ahead and test from devel. |
Went through steps to reproduce - confirmed this works on: ansible 2.2.0 (devel f2980fc) last updated 2016/04/28 14:25:02 (GMT -400) ansible 2.1.0.0 (stable-2.1 3c42724) last updated 2016/04/28 14:26:35 (GMT -400) ansible 1.9.6 (stable-1.9 10a38a7) last updated 2016/04/27 19:50:44 (GMT -400) |
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A
SUMMARY
Including ansible_python_interpreter='/usr/bin/env python' in inventory leads to module failure (OSError: [Errno 2] No such file or directory). Setting
ansible_python_interpreter
to specific path (e.g./usr/local/bin/python
) resolves issue.STEPS TO REPRODUCE
inventory
file:ansible-playbook -i inventory playbook.yml
EXPECTED RESULTS
Warning that
/usr/bin/env
is no longer supported foransible_python_interpreter
. (See http://docs.ansible.com/ansible/intro_inventory.html)ACTUAL RESULTS
Seeing
MODULE FAILURE
andOSError: [Errno 2] No such file or directory
.Full output:
The text was updated successfully, but these errors were encountered: