Skip to content

Instantly share code, notes, and snippets.

@reduzent
Created July 28, 2016 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reduzent/e933df850516dfd8fe99d0b6b38dceb2 to your computer and use it in GitHub Desktop.
Save reduzent/e933df850516dfd8fe99d0b6b38dceb2 to your computer and use it in GitHub Desktop.
Using /home/roman/itzansible/ansible.cfg as config file
Loaded callback default of type stdout, v2.0
PLAYBOOK: synchronize_bug.yml **************************************************
1 plays in synchronize_bug.yml
PLAY [db1test,dbslave2test] ****************************************************
TASK [setup] *******************************************************************
Using module file /home/roman/ansible/lib/ansible/modules/core/system/setup.py
<db1test> ESTABLISH SSH CONNECTION FOR USER: None
Using module file /home/roman/ansible/lib/ansible/modules/core/system/setup.py
<db1test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r db1test '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1469713844.07-162858944591153 `" && echo ansible-tmp-1469713844.07-162858944591153="` echo $HOME/.ansible/tmp/ansible-tmp-1469713844.07-162858944591153 `" ) && sleep 0'"'"''
<dbslave2test> ESTABLISH SSH CONNECTION FOR USER: None
<dbslave2test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r dbslave2test '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1469713844.07-48236154325475 `" && echo ansible-tmp-1469713844.07-48236154325475="` echo $HOME/.ansible/tmp/ansible-tmp-1469713844.07-48236154325475 `" ) && sleep 0'"'"''
<dbslave2test> PUT /tmp/tmp7V4aB9 TO /home/roman/.ansible/tmp/ansible-tmp-1469713844.07-48236154325475/setup.py
<db1test> PUT /tmp/tmpAWrhJQ TO /home/roman/.ansible/tmp/ansible-tmp-1469713844.07-162858944591153/setup.py
<dbslave2test> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r '[dbslave2test]'
<db1test> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r '[db1test]'
<dbslave2test> ESTABLISH SSH CONNECTION FOR USER: None
<dbslave2test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r dbslave2test '/bin/sh -c '"'"'chmod -R u+x /home/roman/.ansible/tmp/ansible-tmp-1469713844.07-48236154325475/ && sleep 0'"'"''
<db1test> ESTABLISH SSH CONNECTION FOR USER: None
<db1test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r db1test '/bin/sh -c '"'"'chmod -R u+x /home/roman/.ansible/tmp/ansible-tmp-1469713844.07-162858944591153/ && sleep 0'"'"''
<dbslave2test> ESTABLISH SSH CONNECTION FOR USER: None
<dbslave2test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r -tt dbslave2test '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=cnmkxrmbvrkydtgfjoeuzucwmkapoypp] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-cnmkxrmbvrkydtgfjoeuzucwmkapoypp; /usr/bin/python /home/roman/.ansible/tmp/ansible-tmp-1469713844.07-48236154325475/setup.py; rm -rf "/home/roman/.ansible/tmp/ansible-tmp-1469713844.07-48236154325475/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<db1test> ESTABLISH SSH CONNECTION FOR USER: None
<db1test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r -tt db1test '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=wgpkpqkrewgwrsvhetcpmjkqorqzlrpy] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-wgpkpqkrewgwrsvhetcpmjkqorqzlrpy; /usr/bin/python /home/roman/.ansible/tmp/ansible-tmp-1469713844.07-162858944591153/setup.py; rm -rf "/home/roman/.ansible/tmp/ansible-tmp-1469713844.07-162858944591153/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
ok: [dbslave2test]
ok: [db1test]
TASK [copy data from source to destination] ************************************
task path: /home/roman/itzansible/synchronize_bug.yml:7
skipping: [dbslave2test] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
Using module file /home/roman/ansible/lib/ansible/modules/core/files/synchronize.py
<dbslave2test> ESTABLISH SSH CONNECTION FOR USER: None
<dbslave2test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r dbslave2test '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1469713844.55-206912099281690 `" && echo ansible-tmp-1469713844.55-206912099281690="` echo $HOME/.ansible/tmp/ansible-tmp-1469713844.55-206912099281690 `" ) && sleep 0'"'"''
<dbslave2test> PUT /tmp/tmpxXpZIO TO /home/roman/.ansible/tmp/ansible-tmp-1469713844.55-206912099281690/synchronize.py
<dbslave2test> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r '[dbslave2test]'
<dbslave2test> ESTABLISH SSH CONNECTION FOR USER: None
<dbslave2test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r dbslave2test '/bin/sh -c '"'"'chmod -R u+x /home/roman/.ansible/tmp/ansible-tmp-1469713844.55-206912099281690/ && sleep 0'"'"''
<dbslave2test> ESTABLISH SSH CONNECTION FOR USER: None
<dbslave2test> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/roman/.ansible/cp/ansible-ssh-%h-%p-%r -tt dbslave2test '/bin/sh -c '"'"'/usr/bin/python /home/roman/.ansible/tmp/ansible-tmp-1469713844.55-206912099281690/synchronize.py; rm -rf "/home/roman/.ansible/tmp/ansible-tmp-1469713844.55-206912099281690/" > /dev/null 2>&1 && sleep 0'"'"''
fatal: [db1test -> dbslave2test]: FAILED! => {
"changed": false,
"cmd": "/usr/bin/rsync --delay-updates -F --compress --delete-after --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no' --rsync-path=\"sudo rsync\" --out-format='<<CHANGED>>%i %n%L' \"/tmp/testfiles\" \"db1test:/tmp/testfiles\"",
"failed": true,
"invocation": {
"module_args": {
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": null,
"delete": true,
"dest": "db1test:/tmp/testfiles",
"dest_port": 22,
"dirs": false,
"existing_only": false,
"group": null,
"links": null,
"mode": "push",
"owner": null,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": null,
"rsync_path": "\"sudo rsync\"",
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/tmp/testfiles",
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"msg": "Permission denied (publickey).\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]\n",
"rc": 255
}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @synchronize_bug.retry
PLAY RECAP *********************************************************************
db1test : ok=1 changed=0 unreachable=0 failed=1
dbslave2test : ok=1 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment