Look at ansible_python_interpreter:
http://docs.ansible.com/ansible/latest/intro_inventory.html#list-of-behavioral-inventory-parameters

On Tue, Oct 31, 2017 at 2:12 PM, ZillaYT <[email protected]> wrote:

> How do I force Ansible to use a certain version of Python? Is it in the
> ansible.cfg file? For example, I see via "ansible --version" command that
> it's using /usr/local/bin/python v2.6.6, but I want it to use
> /local/python/bin/python v2.7.x for example?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/a2fb46cb-149c-41ca-838f-a28e78d5c423%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/a2fb46cb-149c-41ca-838f-a28e78d5c423%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v-O%3DWawPVEWWy92Mq56%2B_LzQKPNscBEkU3d8kQsaAHoBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to