Ansible, python executable on remote host

  • Done
  • quality assurance status badge
Details
3 participants
  • Al McElrath
  • Ludovic Courtès
  • zimoun
Owner
unassigned
Submitted by
Al McElrath
Severity
normal
A
A
Al McElrath wrote on 17 Dec 2015 21:32
(address . bug-guix@gnu.org)
87vb7w3jft.fsf@atonesir.com
Hi,

I had some trouble with ansible that I'd like to share. I believe it
tries to use the same path to the python executable on the remote host
as exists locally, which is problematic for guix:

'/bin/sh: 1: /gnu/store/5isi4xqg1jr5rqbr6pfap28fw5116dnr-python-2.7.10/bin/python: not found'

I imagine this can be a problem for non-guix users too, and there's a
workaround in the form of a setting to specify the remote python path,
"ansible_python_interpreter":


Not quite a bug, but maybe this will help someone else.
L
L
Ludovic Courtès wrote on 19 Dec 2015 15:12
(name . Al McElrath)(address . hello@atonesir.com)(address . 22196@debbugs.gnu.org)
87oadmzfvn.fsf@gnu.org
Hi!

Al McElrath <hello@atonesir.com> skribis:

Toggle quote (6 lines)
> I had some trouble with ansible that I'd like to share. I believe it
> tries to use the same path to the python executable on the remote host
> as exists locally, which is problematic for guix:
>
> '/bin/sh: 1: /gnu/store/5isi4xqg1jr5rqbr6pfap28fw5116dnr-python-2.7.10/bin/python: not found'

Oops, indeed.

Toggle quote (7 lines)
> workaround in the form of a setting to specify the remote python path,
> "ansible_python_interpreter":
>
> http://docs.ansible.com/ansible/intro_inventory.html#list-of-behavioral-inventory-parameters
>
> Not quite a bug, but maybe this will help someone else.

I’m guessing we could at least change the default value. Would it be
possible to set the default value of ‘ansible_python_interpreter’ to
just ‘python’, hoping that it will be searched for in $PATH on the
remote host?

Sounds like the most viable option.

Thanks for your report!

Ludo’.
L
L
Ludovic Courtès wrote on 3 May 2016 22:26
control message for bug #22196
(address . control@debbugs.gnu.org)
87twiej3az.fsf@gnu.org
tags 22196 moreinfo
Z
Z
zimoun wrote on 12 Nov 2019 21:52
Bug #22196 Hunting: status?
CAJ3okZ1fW7dhqhPXiE4CWkwrge=86-58S4wrE_yT_zgUiVRvPw@mail.gmail.com
Dear,

This bug was reported more than 3 years ago and it is tagged "moreinfo".

Does it still apply?
If yes, any progress to report?
If no, does it make sense to close it?

Thanks in advance for any comments.

All the best,
simon
Z
Z
zimoun wrote on 20 Nov 2019 19:38
Bug #22196 Hunting: Ansible: python executable on remote host
CAJ3okZ3pynxMXCNXZGSKFHvCcZ=L9hxsNpc1g-gj3i=kumV=mQ@mail.gmail.com
Hi,

Ludo wrote [1]:

<<
I’m guessing we could at least change the default value. Would it be
possible to set the default value of ‘ansible_python_interpreter’ to
just ‘python’, hoping that it will be searched for in $PATH on the
remote host?
Toggle quote (2 lines)
>>



I do not see any relative thing in the definition of the package
ansible (admin.scm).

Is it useful for general practise of Ansible?
Or is it specific to one particular usage? In such case, the tip [2]
could be reported in the manual or cookbook.



What do you think is the best to close this long standing bug?


All the best,
simon
Z
Z
zimoun wrote on 2 Dec 2019 18:40
(address . 22196-done@debbugs.gnu.org)
CAJ3okZ302j8EU8Do04PC3rH76ZZTnzCC114g9NPcsieVGTfV3Q@mail.gmail.com
Dear,

On Wed, 20 Nov 2019 at 19:39, zimoun <zimon.toutoune@gmail.com> wrote:

Toggle quote (2 lines)
> What do you think is the best to close this long standing bug?

This wish has bee opened almost 4 years ago. The report proposes a tip
with Ansible on remote host. Because it is not Guix specific and the
current default value seems enough, we close this bug.

All the best,
simon
Closed
?