It's been my experience that ansible absolutely requires Python 2.6+ or
Python 2.4 with the simplejson module. I don't know where in the documents,
but I reference this in my README for my main ansible project:

https://github.com/stevenhaddox/ansible_rails_enterprise/blob/master/README.md

I also handle it in my init.yml & as my first step for any server:

https://github.com/stevenhaddox/ansible_rails_enterprise/blob/master/provisioning/init.yml

# Spin-up the VM and bootstrap the server to add python-simplejson &
needed packages

$ vagrant up --no-provision && ansible-playbook provisioning/init.yml
-i provisioning/hosts/vagrant -u vagrant -s


On Thursday, April 16, 2015, Eugene Sajine <[email protected]> wrote:

> I'm having problems with some hosts running ansible: It complains that
> there is no simplejson module found. I figured that it is something to do
> with the way ansible_env.PATH is set as somehow it picks up a very old
> version of python and i can't figure out where it comes from. I posted the
> question on stackoverflow and found this thread and other people asking the
> same thing - but there is still no definitive answer.
>
> I would like to know how this variable is getting set and how i can affect
> it to make sure that the right version of python is used on the host?
>
> http://stackoverflow.com/questions/29289472/ansible-how-ansible-env-path-is-set-in-ssh-session
>
> http://grokbase.com/t/gg/ansible-project/1479n0d0qp/ansible-env-path-how-is-it-set
>
> thanks a lot!
>
>
> On Monday, April 13, 2015 at 9:47:56 AM UTC-4, Brian Coca wrote:
>>
>> you have the environment: keyword that can set path per task, in 1.9
>> you can do it per play.
>>
>>
>>
>>
>> --
>> Brian Coca
>>
>  --
> 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/rKHzovQYSLY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/aaf25e0e-0210-4ab7-bb45-16835e26f824%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/aaf25e0e-0210-4ab7-bb45-16835e26f824%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Steven Haddox
http://stevenhaddox.com

-- 
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/CACAM_PHMNVw-N42wbM%3DAkapWV8goEzmdtmaVMkqKYziiGJgfjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to