Re: [ansible-project] Point ansible to my new version of Python

37 views
Skip to first unread message
Message has been deleted

Brian Coca

unread,
Mar 31, 2017, 12:19:54 AM3/31/17
to Ansible Project
ansible_python_interpreter is for 'modules' not for Ansible itself,
what python Ansible uses can depends on how/what installed it. Check
bin/ansible for a shebang, it determines which python is actually used
for the controller.

PS. i really hope those are not your real auth credentials.
----------
Brian Coca

Jonathan Anderson

unread,
Mar 31, 2017, 12:34:12 PM3/31/17
to ansible...@googlegroups.com
Thanks Brian for your help but I need some more clarification.

You said I should "Check bin/ansible for a shebang" but....

I have no folder or file starting with "ansible" in /bin/

My "ansible" folder is in /etc/ but it only contains ansible.cfg and it only contains this

[defaults]
inventory = /fs01/home/controlNode/hosts

There is also a file "ansible.cfg.rpmsave".  Can I delete that?

Also, is this what you call a shebang?  Where again should I put it?

#!/usr/bin/env python2.7



--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/aRD6j9y0GEU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7ck%2BfbaZrMhLzBpnA13%2BkkWYToq2N9oyk_mXKEW0b9QWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Brian Coca

unread,
Mar 31, 2017, 1:06:16 PM3/31/17
to Ansible Project
The ansible in bin/ansible is not a folder it is the executable script
(use `which ansible` to locate it).

the shebang is a convention, which is how unix/linux system execute
scripts. The first line of the script starts with '#!' and what
follows is the interpreter to be used.

As for rpmsave files, those are a feature of rpm systems package
mangement, deleting them or not depends on your
preferences/policies/etc.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages