ansible 2.0.0.2
config file = /home/tg/workspace/training/ansible/content/samples/ad-hoc/ansible.cfg
configured module search path = Default w/o overrides
[defaults]
host_key_checking=False
$ ansible all -i hosts -B 3600 -P 0 -a "sleep 1000"
training-1-1.tgbyte.de | SUCCESS | rc=0 >>
training-1-2.tgbyte.de | SUCCESS | rc=0 >>
training-1-3.tgbyte.de | SUCCESS | rc=0 >>
ansible all -i hosts -B 3600 -P 0 -vvvv -a "sleep 1000"
Using /home/tg/workspace/training/ansible/content/samples/ad-hoc/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
<training-1-1.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-1.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-1.tgbyte.de '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281 )" )'
<training-1-2.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-2.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-2.tgbyte.de '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592 )" )'
<training-1-3.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-3.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-3.tgbyte.de '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146 )" )'
<training-1-1.tgbyte.de> PUT /tmp/tmpp3t6oH TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/command
<training-1-1.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-1.tgbyte.de]'
<training-1-1.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-1.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-1.tgbyte.de 'chmod a+rx /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/command'
<training-1-1.tgbyte.de> PUT /tmp/tmp_g1yYO TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/async_wrapper
<training-1-1.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-1.tgbyte.de]'
<training-1-1.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-1.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-1.tgbyte.de 'chmod a+rx /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/async_wrapper'
<training-1-1.tgbyte.de> PUT /tmp/tmpA8qdMB TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/arguments
<training-1-1.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-1.tgbyte.de]'
<training-1-1.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-1.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-1.tgbyte.de 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/async_wrapper 729788062869 3600 /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/command /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/arguments'
<training-1-1.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-1.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-1.tgbyte.de 'rm -f -r /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-166413182233281/ > /dev/null 2>&1'
training-1-1.tgbyte.de | SUCCESS | rc=0 >>
<training-1-3.tgbyte.de> PUT /tmp/tmpPAuNt8 TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/command
<training-1-3.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-3.tgbyte.de]'
<training-1-2.tgbyte.de> PUT /tmp/tmpc1dxFb TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/command
<training-1-2.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-2.tgbyte.de]'
<training-1-3.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-3.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-3.tgbyte.de 'chmod a+rx /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/command'
<training-1-3.tgbyte.de> PUT /tmp/tmpMDq4jL TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/async_wrapper
<training-1-3.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-3.tgbyte.de]'
<training-1-2.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-2.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-2.tgbyte.de 'chmod a+rx /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/command'
<training-1-2.tgbyte.de> PUT /tmp/tmpZck5cm TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/async_wrapper
<training-1-2.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-2.tgbyte.de]'
<training-1-3.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-3.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-3.tgbyte.de 'chmod a+rx /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/async_wrapper'
<training-1-3.tgbyte.de> PUT /tmp/tmppWLnjT TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/arguments
<training-1-3.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-3.tgbyte.de]'
<training-1-2.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-2.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-2.tgbyte.de 'chmod a+rx /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/async_wrapper'
<training-1-2.tgbyte.de> PUT /tmp/tmpt5tfrR TO /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/arguments
<training-1-2.tgbyte.de> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r '[training-1-2.tgbyte.de]'
<training-1-3.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-3.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-3.tgbyte.de 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/async_wrapper 80137669282 3600 /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/command /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/arguments'
<training-1-2.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-2.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-2.tgbyte.de 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/async_wrapper 39280840727 3600 /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/command /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/arguments'
<training-1-3.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-3.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-3.tgbyte.de 'rm -f -r /home/schulung/.ansible/tmp/ansible-tmp-1464162877.98-68166976443146/ > /dev/null 2>&1'
training-1-3.tgbyte.de | SUCCESS | rc=0 >>
<training-1-2.tgbyte.de> ESTABLISH SSH CONNECTION FOR USER: schulung
<training-1-2.tgbyte.de> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=schulung -o ConnectTimeout=10 -o ControlPath=/home/tg/.ansible/cp/ansible-ssh-%h-%p-%r -tt training-1-2.tgbyte.de 'rm -f -r /home/schulung/.ansible/tmp/ansible-tmp-1464162877.97-74424695929592/ > /dev/null 2>&1'
training-1-2.tgbyte.de | SUCCESS | rc=0 >>
ISSUE TYPE
COMPONENT NAME
core
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Control machine & hosts: Ubuntu 14.04 x86_64
SUMMARY
When running an ad-hoc command with
-Bagainst the managed hosts, there does not seem to be any way to get hold of the job_id for later checking via theasync_statusmodule.STEPS TO REPRODUCE
EXPECTED RESULTS
Instead of just a success message, I'd expect the response to contain some indication of the job_id that could be used for checking the status using
async_status. http://grokbase.com/t/gg/ansible-project/14bcxt8xhc/three-questions-regarding-asynchronous-jobs hints at that this used to work before.ACTUAL RESULTS