--
--
--
--
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-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
This path is normally set correctly in the sudoers file (by default).
Brian Coca
This path is normally set correctly in the sudoers file (by default).
By default, the env_reset option is enabled. This causes commands to be executed with a new, minimal environment. On AIX (and Linux systems without PAM), the environment is initialized with
the contents of the /etc/environment file. The new environment contains the TERM, PATH, HOME, MAIL, SHELL, LOGNAME, USER, USERNAME and SUDO_* variables in addition to variables from the
invoking process permitted by the env_check and env_keep options. This is effectively a whitelist for environment variables.
serge@cyberlab:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
or you should have it set in sudoers file itself:Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
On Tue, May 14, 2013 at 2:56 PM, Brian Coca <bria...@gmail.com> wrote:I would almost qualify this as a 'bug' in Debian 6--
Brian Coca
Stultorum infinitus est numerus
0110000101110010011001010110111000100111011101000010000001111001011011110111010100100000011100110110110101100001011100100111010000100001Pedo mellon a minno--
Brian Coca
Stultorum infinitus est numerus
0110000101110010011001010110111000100111011101000010000001111001011011110111010100100000011100110110110101100001011100100111010000100001Pedo mellon a minno
--
serge@cyberlab:~/src/ansible$ ansible debian6 -u serge -K -m apt -a "pkg=sshpass state=latest" -vvv
sudo password:
debian6 | success >> {
"changed": true
}
serge@cyberlab:~/src/ansible$ ansible debian6 -u serge -K -m shell -a "echo $PATH" -vvv
sudo password:
debian6 | success | rc=0 >>
/home/serge/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
serge@cyberlab:~/src/ansible$ ansible debian6 -u serge -K -m shell -a "which apt-get; which dpkg" -vvv
sudo password:
debian6 | success | rc=0 >>
/usr/bin/apt-get
/usr/bin/dpkg
+ global APTITUDE_CMD = module.get_bin_path("aptitude")+ global APT_GET_CMD = module.get_bin_path("apt-get")