Re: [ansible-project] bad PATH when running "apt" module

2015-05-12 Thread Alex Peters
On Tuesday, 12 May 2015 00:29:42 UTC+10, Marcus Franke wrote: > > if you are looking for problems with sudo you can login as your ansible > user and issue "sudo -l". This will list all commands your ansible user is > allowed to use. > The output of this command on the affected machine is as follo

Re: [ansible-project] bad PATH when running "apt" module

2015-05-11 Thread Alex Peters
Would giving you SSH access to this particular machine be useful? On Mon, 11 May 2015 11:53 pm Brian Coca wrote: > i'm unable to reproduce the issue, the path seems fine, not sure if > its a bug or not, but without a way to reproduce the issue I'm not > sure how it will get resolved. > > > > --

Re: [ansible-project] bad PATH when running "apt" module

2015-05-11 Thread Marcus Franke
Hi Alex, if you are looking for problems with sudo you can login as your ansible user and issue "sudo -l". This will list all commands your ansible user is allowed to use. >From your sudo config files, %sudo group can fire all kind of commands, but needs a password. That's by intention? Regards,

Re: [ansible-project] bad PATH when running "apt" module

2015-05-11 Thread Brian Coca
i'm unable to reproduce the issue, the path seems fine, not sure if its a bug or not, but without a way to reproduce the issue I'm not sure how it will get resolved. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubsc

Re: [ansible-project] bad PATH when running "apt" module

2015-05-11 Thread Alex Peters
I've been unable to resolve this issue with the ideas presented so far. In the absence of any further responses, should I consider this an Ansible bug and file a bug report? On Sat, 9 May 2015 at 22:18 Alex Peters wrote: > On Friday, 8 May 2015 23:55:32 UTC+10, Brian Coca wrote: >> >> try: sudo

Re: [ansible-project] bad PATH when running "apt" module

2015-05-09 Thread Alex Peters
On Friday, 8 May 2015 23:55:32 UTC+10, Brian Coca wrote: > > try: sudo sh -c 'echo $PATH' > > su can readd path info, the above is closer to what ansible does (it > uses sudo -u not sudo su). > Done: $ sudo sh -c 'echo $PATH' /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr

Re: [ansible-project] bad PATH when running "apt" module

2015-05-08 Thread Alex Peters
On Fri, 8 May 2015 11:55 pm Brian Coca wrote: try: sudo sh -c 'echo $PATH' su can readd path info, the above is closer to what ansible does (it uses sudo -u not sudo su). $ sudo sh -c 'echo $PATH' /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/opt/vc/bin -- You

Re: [ansible-project] bad PATH when running "apt" module

2015-05-08 Thread Brian Coca
try: sudo sh -c 'echo $PATH' su can readd path info, the above is closer to what ansible does (it uses sudo -u not sudo su). -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] bad PATH when running "apt" module

2015-05-08 Thread Alex Peters
On Friday, 8 May 2015 23:27:09 UTC+10, Brian Coca wrote: > > The first one I would look at is sudo (/etc/sudoers), as it normally > resets all env variables for a user. > The contents of my /etc/sudoers and /etc/sudoers.d/* files are: Defaults env_reset Defaults mail_badpass Defaults secure_pa

Re: [ansible-project] bad PATH when running "apt" module

2015-05-08 Thread Brian Coca
The first one I would look at is sudo (/etc/sudoers), as it normally resets all env variables for a user. -- Brian Coca -- 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

Re: [ansible-project] bad PATH when running "apt" module

2015-05-07 Thread Alex Peters
On Tuesday, 5 May 2015 01:21:17 UTC+10, Brian Coca wrote: > > When you gather facts on the machine, you should be able to see the > 'PATH' that ansible sees under ansible_env, ansible uses it's own path > list to find apt and dpkg, but that should not influence the other > tools, which ansible i

Re: [ansible-project] bad PATH when running "apt" module

2015-05-04 Thread Brian Coca
When you gather facts on the machine, you should be able to see the 'PATH' that ansible sees under ansible_env, ansible uses it's own path list to find apt and dpkg, but that should not influence the other tools, which ansible is not using directly. -- Brian Coca -- You received this message

[ansible-project] bad PATH when running "apt" module

2015-05-04 Thread Alex Peters
I'm trying to install a package on a system running a Debian Jessie-based distribution called OSMC . This task (run with ansible_sudo == true): - name: ensure Vim is installed apt: name=vim state=present causes this to happen: TASK: [vim | ensure Vim is installed] ***