Eh, 

Ansible hosts database allows to configure that via
`ansible_python_interpreter`.

e.g.

host_with_custom_python_2 ansible_host=1.2.3.4 
ansible_python_interpreter=/usr/local/bin/python2

See: 
http://docs.ansible.com/ansible/intro_inventory.html#list-of-behavioral-inventory-parameters

# kraM

PS: No need  to maddle with symlinks...

On 18:08 Mon 05 Sep, Javier Palacios wrote:
> Apart from installing python 2.7, you need to manually symlink:
>     ln -s /usr/bin/python2.7 /usr/bin/python
> At least ansible 1.9, searchs for exactly '/usr/bin/python' path.
> 
> Javier Palacios
> 
> On Mon, Sep 5, 2016 at 10:55 AM, ZigDuDim <[email protected]> wrote:
> 
> > Hi everyone,
> >
> > I have 2 servers, both under the lastest version of ubuntu server 16.04.1
> > LTS.
> > One of them is my Ansible remote controler, and the other is my future
> > DHCP server.
> >
> > I followed the instruction on this web site:
> > http://www.yet.org/2014/11/ansible-dhcpd/
> >
> > But my Ansible server keep tell me:
> >
> > fatal: [dhcp]: FAILED! => {"changed": false, "failed": true,
> > "module_stderr": "", "module_stdout": "bash: /usr/bin/python: Aucun fichier
> > ou dossier de ce type\r\n", "msg": "MODULE FAILURE", "parsed": false}
> >
> > After few research i found that i had to install python 2.7, but after
> > that my Ansibler server keep throw me the error.
> >
> > Does anyone now why?
> > Thanks you !!
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ansible Development" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > For more options, visit https://groups.google.com/d/optout.
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
kraM

   Think can be useful if someone is needing some thinking about something.

gpg --recv-keys 0x6C215719

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: PGP signature

Reply via email to