I am trying to install git client package on Fedora 18 as  a target from 
OSX.

I am running the following

ansible-playbook -i hosts install.yml -u preseed  -K -U preseed  -vvv 

where the ssh user and the sudo user are the same.. Unfortunately... No 
sudo command is issue and the installation failed. If I don t specify the 
sudo user, it tries root but then hangs....

See output below when I run with sudo user specified. what am I doing wrong?

TASK: [git-client | Install git client] 
*************************************** 

<192.168.222.131> ESTABLISH CONNECTION FOR USER: preseed

<192.168.222.131> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=preseed', '-o', 
'ConnectTimeout=10', '192.168.222.131', "/bin/sh -c 'mkdir -p 
/tmp/ansible-1391028001.48-186959529265981 && chmod a+rx 
/tmp/ansible-1391028001.48-186959529265981 && echo 
/tmp/ansible-1391028001.48-186959529265981'"]

<192.168.222.131> REMOTE_MODULE yum pkg=git state=latest

<192.168.222.131> PUT 
/var/folders/p3/05g7th9x4vzf_198t01mdtcr0000gp/T/tmpCDxr5c TO 
/tmp/ansible-1391028001.48-186959529265981/yum

<192.168.222.131> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=preseed', '-o', 
'ConnectTimeout=10', '192.168.222.131', "/bin/sh -c 'chmod a+r 
/tmp/ansible-1391028001.48-186959529265981/yum'"]

<192.168.222.131> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=preseed', '-o', 
'ConnectTimeout=10', '192.168.222.131', "/bin/sh -c '/usr/bin/python -tt 
/tmp/ansible-1391028001.48-186959529265981/yum'"]

<192.168.222.131> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=preseed', '-o', 
'ConnectTimeout=10', '192.168.222.131', "/bin/sh -c 'rm -rf 
/tmp/ansible-1391028001.48-186959529265981/ >/dev/null 2>&1'"]

failed: [192.168.222.131] => {"changed": false, "failed": true, "item": "", 
"rc": 1, "results": ["Loaded plugins: langpacks, presto\n"]}

msg: You need to be root to perform this command.

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to