Hi Brian

from /etc/ansible I am running ansible-playbook webservers_absent.yml

with -vvvv I get

SUDO password: 

PLAY [webservers] 
************************************************************* 

GATHERING FACTS 
*************************************************************** 
<*myuser@ipaddress*> ESTABLISH CONNECTION FOR USER: *myuser*
<*myuser@ipaddress*> REMOTE_MODULE setup
<*myuser@ipaddress*> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o 
ControlPath="/home/*myuser*/.ansible/cp/ansible-ssh-%h-%p-%r" 
-o IdentityFile="/home/*myuser*/.ssh/id_rsa" -o 
KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10  /bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1452847308.18-48037085136110 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1452847308.18-48037085136110 && echo 
$HOME/.ansible/tmp/ansible-tmp-1452847308.18-48037085136110'
<*myuser@ipaddress*> PUT /tmp/tmp4cBgiH TO /home/*myuser*
/.ansible/tmp/ansible-tmp-1452847308.18-48037085136110/setup
<*myuser@ipaddress*> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o 
ControlPath="/home/*myuser*/.ansible/cp/ansible-ssh-%h-%p-%r" 
-o IdentityFile="/home/*myuser*/.ssh/id_rsa" -o 
KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10  /bin/sh -c 'LANG=C 
LC_CTYPE=C /usr/bin/python 
/home/myuser/.ansible/tmp/ansible-tmp-1452847308.18-48037085136110/setup; 
rm -rf /home/*myuser*/.ansible/tmp/ansible-tmp-1452847308.18-48037085136110/ 
>/dev/null 2>&1'
ok: [*myuser@ipaddress*]

TASK: [ensure tree is absent] 
************************************************* 
<*myuser@ipaddress*> ESTABLISH CONNECTION FOR USER: *myuser*
<*myuser@ipaddress*> REMOTE_MODULE yum name=tree state=absent
<*myuser@ipaddress*> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o 
ControlPath="/home/*myuser*/.ansible/cp/ansible-ssh-%h-%p-%r" 
-o IdentityFile="/home/myuser/.ssh/id_rsa" -o 
KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10  /bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1452847335.31-110782753766308 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1452847335.31-110782753766308 && echo 
$HOME/.ansible/tmp/ansible-tmp-1452847335.31-110782753766308'
<myuser@ipaddress> PUT /tmp/tmpXyPW7R TO /home/*myuser*
/.ansible/tmp/ansible-tmp-1452847335.31-110782753766308/yum
<*myuser@ipaddress*> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o 
ControlPath="/home/*myuser*/.ansible/cp/ansible-ssh-%h-%p-%r" 
-o IdentityFile="/home/*myuser*/.ssh/id_rsa" -o 
KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10  /bin/sh -c 'LANG=C 
LC_CTYPE=C /usr/bin/python -tt 
/home/myuser/.ansible/tmp/ansible-tmp-1452847335.31-110782753766308/yum; rm 
-rf /home/*myuser*/.ansible/tmp/ansible-tmp-1452847335.31-110782753766308/ 
>/dev/null 2>&1'
failed: [*myuser@ipaddress*] => {"changed": false, "failed": true, "rc": 1, 
"results": ["Loaded plugins: fastestmirror\n"]}
msg: You need to be root to perform this command.


FATAL: all hosts have already failed -- aborting

PLAY RECAP 
******************************************************************** 
           to retry, use: --limit @/home/*myuser*/webservers_absent.retry

*myuser@ipaddress*          : ok=1    changed=0    unreachable=0    
failed=1  





*myuser* and *ipaddress* are redacted
Regards
Paul

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/81246661-143d-4e74-8f11-fa4743d2a3ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to