unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22196: Ansible, python executable on remote host
@ 2015-12-17 20:32 Al McElrath
  2015-12-19 14:12 ` Ludovic Courtès
  2019-11-12 20:52 ` bug#22196: Bug #22196 Hunting: status? zimoun
  0 siblings, 2 replies; 5+ messages in thread
From: Al McElrath @ 2015-12-17 20:32 UTC (permalink / raw)
  To: 22196


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":

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

Not quite a bug, but maybe this will help someone else.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22196: Ansible, python executable on remote host
  2015-12-17 20:32 bug#22196: Ansible, python executable on remote host Al McElrath
@ 2015-12-19 14:12 ` Ludovic Courtès
  2019-11-12 20:52 ` bug#22196: Bug #22196 Hunting: status? zimoun
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2015-12-19 14:12 UTC (permalink / raw)
  To: Al McElrath; +Cc: 22196

Hi!

Al McElrath <hello@atonesir.com> skribis:

> 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.

> 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’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22196: Bug #22196 Hunting: status?
  2015-12-17 20:32 bug#22196: Ansible, python executable on remote host Al McElrath
  2015-12-19 14:12 ` Ludovic Courtès
@ 2019-11-12 20:52 ` zimoun
  2019-11-20 18:38   ` bug#22196: Bug #22196 Hunting: Ansible: python executable on remote host zimoun
  1 sibling, 1 reply; 5+ messages in thread
From: zimoun @ 2019-11-12 20:52 UTC (permalink / raw)
  To: 22196, Ludovic Courtès, hello

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22196: Bug #22196 Hunting: Ansible: python executable on remote host
  2019-11-12 20:52 ` bug#22196: Bug #22196 Hunting: status? zimoun
@ 2019-11-20 18:38   ` zimoun
  2019-12-02 17:40     ` zimoun
  0 siblings, 1 reply; 5+ messages in thread
From: zimoun @ 2019-11-20 18:38 UTC (permalink / raw)
  To: 22196, Ludovic Courtès, hello

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?
>>

[1] http://issues.guix.gnu.org/issue/22196


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.

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


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


All the best,
simon

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22196: Bug #22196 Hunting: Ansible: python executable on remote host
  2019-11-20 18:38   ` bug#22196: Bug #22196 Hunting: Ansible: python executable on remote host zimoun
@ 2019-12-02 17:40     ` zimoun
  0 siblings, 0 replies; 5+ messages in thread
From: zimoun @ 2019-12-02 17:40 UTC (permalink / raw)
  To: 22196-done

Dear,

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

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-02 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-17 20:32 bug#22196: Ansible, python executable on remote host Al McElrath
2015-12-19 14:12 ` Ludovic Courtès
2019-11-12 20:52 ` bug#22196: Bug #22196 Hunting: status? zimoun
2019-11-20 18:38   ` bug#22196: Bug #22196 Hunting: Ansible: python executable on remote host zimoun
2019-12-02 17:40     ` zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).