PLAY [test sudo] **************************************************************
TASK: [sudo test | sudo whoami] ***********************************************
<grolsch> ESTABLISH CONNECTION FOR USER: jhughes
<grolsch> REMOTE_MODULE command sudo whoami #USE_SHELL
<grolsch> EXEC ['ssh', '-C', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlP
ersist=60s', '-o', 'ControlPath=/data/home/jhughes/.ansible/cp/ansible-ssh-%h-%p
-%r', '-o', 'Port=22', '-o', 'IdentityFile=/srv/ansible/playbook/files/ssl/id_rs
a', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gss
api-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no
', '-o', 'ConnectTimeout=10', 'grolsch', '/bin/sh -c /usr/bin/python']
changed: [grolsch] => {"changed": true, "cmd": "sudo whoami ", "delta": "0:00:00.005624", "end": "2014-04-13 02:03:57.611076", "rc": 0, "start": "2014-04-13 02:03:57.605452", "stderr": "", "stdout": "root"}
TASK: [sudo test | whoami with sudo True] *************************************
<grolsch> ESTABLISH CONNECTION FOR USER: jhughes
<grolsch> REMOTE_MODULE command whoami #USE_SHELL
<grolsch> EXEC ['ssh', '-C', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/data/home/jhughes/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'IdentityFile=/srv/ansible/playbook/files/ssl/id_rsa', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'grolsch', '/bin/sh -c /usr/bin/python']
changed: [grolsch] => {"changed": true, "cmd": "whoami ", "delta": "0:00:00.002535", "end": "2014-04-13 02:03:58.674758", "rc": 0, "start": "2014-04-13 02:03:58.672223", "stderr": "", "stdout": "jhughes"}
TASK: [debug] *****************************************************************
<grolsch> ESTABLISH CONNECTION FOR USER: jhughes
ok: [grolsch] => {
"sudo_test_result": {
"changed": true,
"cmd": "whoami ",
"delta": "0:00:00.002535",
"end": "2014-04-13 02:03:58.674758",
"invocation": {
"module_args": "whoami",
"module_name": "shell"
},
"rc": 0,
"start": "2014-04-13 02:03:58.672223",
"stderr": "",
"stdout": "jhughes",
"stdout_lines": [
"jhughes"
]
}
}
TASK: [sudo test check] *******************************************************
fatal: [grolsch] => error while evaluating conditional: sudo_test_result.stdout != root