also I can run ad-hoc commands (like ping) on that target successfully (which 
should proove to some extend that python can be addressed on target, shouldn't 
it?)



> On 10/14/2021 1:37 PM dulhaver via Ansible Project 
> <ansible-project@googlegroups.com> wrote:
> 
>  
> > On 10/14/2021 1:15 PM 'Jean-Yves LENHOF' via Ansible Project 
> > <ansible-project@googlegroups.com> wrote:
> > 
> >  
> > 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.
> yes, one single controller
>  
> > 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
> yes same ansible version, no changes in either ansible version, not python
> 
> > Do you use the same inventory ? If not did you force the ansible python
> > interpreter on one and not the other ?
> same inventory, no forcing
> 
> -- 
> 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/1806530675.99139.1634211429674%40office.mailbox.org.

-- 
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/1170018749.99174.1634211660788%40office.mailbox.org.

Reply via email to