Le 2021-10-14 14:14, dulhaver via Ansible Project a écrit :
On 10/14/2021 1:44 PM Sandip Bhattacharya
<sand...@showmethesource.org> wrote:
On 14.10.21 11:49, dulhaver via Ansible Project wrote:
> I am running a playbook to install postgresql <https://paste.debian.net/1215359/>
against a centos7 (python 2.75) target and am getting this error about a bad python
interpreter <https://paste.debian.net/1215357/>.
>
> I try to solve this via the inventory.yml
>
> all:
> hosts:
> [hostname]: # centos7
Is this literally what is in your inventory.yaml file? Is that even
valid yaml?
Shouldn't it be:
all:
hosts:
hostname: # centos7
this is my literal inventory file: https://paste.debian.net/1215386/
it works for other playbooks, it works for ad-hoc commands (where I
addresse a particular host from that group)
Did you surcharge the python interpreter variable in a config file ?
(/etc/ansible.cfg, ~/.ansible.cfg, etc...)
See:
https://docs.ansible.com/ansible/latest/reference_appendices/config.html
Regards,
--
Jean-Yves LENHOF
--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1a5189ff5c956aa7b82a6352ee28cc1a%40lenhof.eu.org.