Simple code below has been working for about a week, randomly at work (and
now at home) I've been getting the following error. Originally the
commented line was present and produced the following error, but the below
error may be the bigger culprit:
----
Code being executed:
# Detect apr
- stat: path={{STOW_PATH}}/../bin/apr-1-config
register: apr_bin
# changed_when: apr_bin.stat.exists == False
- name: debug apr_bin
debug: msg="{{apr_bin}}"
failed_when: True
# ----- Original Error ----
TASK: [web | stat path={{HOME.stdout}}/opt/stow/../bin/apr-1-config]
**********
<33.33.33.10> ESTABLISH CONNECTION FOR USER: steven
<33.33.33.10> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o',
'ControlPersist=60s', '-o',
'ControlPath=/Users/steven/.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', 'ConnectTimeout=10',
'33.33.33.10', "/bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-1387642615.04-40211013949440 && chmod a+rx
$HOME/.ansible/tmp/ansible-1387642615.04-40211013949440 && echo
$HOME/.ansible/tmp/ansible-1387642615.04-40211013949440'"]
<33.33.33.10> REMOTE_MODULE stat
path=/home/sysadmin/opt/stow/../bin/apr-1-config
<33.33.33.10> PUT
/var/folders/t0/5h5yrp813fbcj62q56_qhqwm0000gn/T/tmp8sNdI0 TO
/home/vagrant/.ansible/tmp/ansible-1387642615.04-40211013949440/stat
<33.33.33.10> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o',
'ControlPersist=60s', '-o',
'ControlPath=/Users/steven/.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', 'ConnectTimeout=10',
'33.33.33.10', "/bin/sh -c '/usr/bin/python
/home/vagrant/.ansible/tmp/ansible-1387642615.04-40211013949440/stat; rm
-rf /home/vagrant/.ansible/tmp/ansible-1387642615.04-40211013949440/
>/dev/null 2>&1'"]
fatal: [33.33.33.10] => error while evaluating conditional:
apr_bin.stat.exists == false
FATAL: all hosts have already failed -- aborting
# ---- debug permission error -----
TASK: [web | stat path={{HOME.stdout}}/opt/stow/../bin/apr-1-config]
**********
<33.33.33.10> ESTABLISH CONNECTION FOR USER: steven
<33.33.33.10> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o',
'ControlPersist=60s', '-o',
'ControlPath=/Users/steven/.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', 'ConnectTimeout=10',
'33.33.33.10', "/bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-1387642932.53-106542622559256 && chmod a+rx
$HOME/.ansible/tmp/ansible-1387642932.53-106542622559256 && echo
$HOME/.ansible/tmp/ansible-1387642932.53-106542622559256'"]
<33.33.33.10> REMOTE_MODULE stat
path=/home/sysadmin/opt/stow/../bin/apr-1-config
<33.33.33.10> PUT
/var/folders/t0/5h5yrp813fbcj62q56_qhqwm0000gn/T/tmpOGDYGp TO
/home/vagrant/.ansible/tmp/ansible-1387642932.53-106542622559256/stat
<33.33.33.10> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o',
'ControlPersist=60s', '-o',
'ControlPath=/Users/steven/.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', 'ConnectTimeout=10',
'33.33.33.10', "/bin/sh -c '/usr/bin/python
/home/vagrant/.ansible/tmp/ansible-1387642932.53-106542622559256/stat; rm
-rf /home/vagrant/.ansible/tmp/ansible-1387642932.53-106542622559256/
>/dev/null 2>&1'"]
failed: [33.33.33.10] => {"failed": true, "item": ""}
msg: Permission denied
FATAL: all hosts have already failed -- aborting
--
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.