Le 2021-10-14 13:05, dulhaver via Ansible Project a écrit :
On 10/14/2021 12:59 PM 'Jean-Yves LENHOF' via Ansible Project
<ansible-project@googlegroups.com> wrote:
Le 2021-10-14 12:56, dulhaver via Ansible Project a écrit :
> thx for the hint
>
>> On 10/14/2021 12:16 PM 'Jean-Yves LENHOF' via Ansible Project
>> <ansible-project@googlegroups.com> wrote:
>>
>> Maybe something wrong with alternatives ?
>> > alternatives --list | grep -i python
>
> turns out empty.
>
> have tried to get something working with
>> alternatives --install /usr/bin/python python /usr/bin/python2.7
>
> (where /usr/bin/python is already a symlink to /usr/bin/python2 which
> is a symlink to /usr/bin/python2.7). It did not change anything
> though.
>
> probably it's my incompetence. I never heard about alternatives before
> (and don't really get it, as I thought the symlinks /usr/bin/python >
> /usr/bin/python2 > /usr/bin/python2.7) should be sufficient to guide
> anybody looking for python to the right executable. Neither do I get
> why all of a sudden a playbook requires this where opther playbooks
> running against the exact same host haven't.
Running from the same controller server with the same ansible version
?
no, I ran all that on the target. doing that on the Ansible controller
server I get:
alternatives --list | grep python
python manual /usr/bin/python3
python3 auto /usr/bin/python3.6
That's not what I was asking... But you answer indirectly to one of my
questions.
You have only one ansible controller as I understand.
You seems to say that there were some playbooks which works OK and some
don't on the same targets.
Do you use the same ansible version for the the one which are OK and not
OK ? There were some changes between versions of ansible for the python
default interpreter search
Do you use the same inventory ? If not did you force the ansible python
interpreter on one and not the other ?
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/2a183e1d76dca48acb64c88e5695ecf9%40lenhof.eu.org.