Last active
December 19, 2015 11:19
-
-
Save srgvg/5946849 to your computer and use it in GitHub Desktop.
Testing ansible-rsyn forced update: $ git show HEAD
commit 5d498052b808516b0411d4f3ce88adc9b842198b
Author: Timothy Appnel <tim@appnel.com>
Date: Mon Jun 10 19:21:36 2013 -0400 Introduced ansible-rsync to core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook -i antares.ginsys.net, synchtest.yml -vvv | |
PLAY [antares.ginsys.net] ***************************************************** | |
TASK: [synchronize src=./testfile dest=/tmp/ verbosity=1] ********************* | |
<antares.ginsys.net> ESTABLISH CONNECTION FOR USER: serge on PORT 22 TO antares.ginsys.net | |
<antares.ginsys.net> EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1373268900.99-235780032268628 && chmod a+rx $HOME/.ansible/tmp/ansible-1373268900.99-235780032268628 && echo $HOME/.ansible/tmp/ansible-1373268900.99-235780032268628' | |
<antares.ginsys.net> PUT /tmp/tmpPW0obV TO /home/serge/.ansible/tmp/ansible-1373268900.99-235780032268628/synchronize | |
<antares.ginsys.net> EXEC /bin/sh -c '/usr/bin/python /home/serge/.ansible/tmp/ansible-1373268900.99-235780032268628/synchronize; rm -rf /home/serge/.ansible/tmp/ansible-1373268900.99-235780032268628/ >/dev/null 2>&1' | |
failed: [antares.ginsys.net] => {"cmd": "rsync --archive --delay-updates --compress -v --temp-dir /home/serge/.ansible/tmp/ansible-1373268900.99-235780032268628 --rsh 'ssh -i None -o StrictHostKeyChecking=no' ./testfile serge@antares.ginsys.net:/tmp/", "failed": true, "rc": 255} | |
msg: Warning: Identity file None not accessible: No such file or directory. | |
Permission denied, please try again. | |
Permission denied, please try again. | |
Permission denied (publickey,password). | |
rsync: connection unexpectedly closed (0 bytes received so far) [sender] | |
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7] | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/var/tmp/ansible/synchtest.retry | |
antares.ginsys.net : ok=0 changed=0 unreachable=0 failed=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: antares.ginsys.net | |
gather_facts: False | |
tasks: | |
- action: synchronize src=./testfile dest=/tmp/ verbosity=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local: | |
$ ansible-playbook -i antares.ginsys.net, synchtest.yml -vvv -c ssh | |
PLAY [antares.ginsys.net] ***************************************************** | |
TASK: [synchronize src=./testfile dest=/tmp/ verbosity=1] ********************* | |
<antares.ginsys.net> ESTABLISH CONNECTION FOR USER: serge | |
<antares.ginsys.net> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/tmp/ansible-ssh-%h-%p-%r', '-o', 'StrictHostKeyChecking=no', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'antares.ginsys.net', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1373268430.09-24064282294749 && chmod a+rx $HOME/.ansible/tmp/ansible-1373268430.09-24064282294749 && echo $HOME/.ansible/tmp/ansible-1373268430.09-24064282294749'"] | |
<antares.ginsys.net> PUT /tmp/tmpMJlr44 TO /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749/synchronize | |
<antares.ginsys.net> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/tmp/ansible-ssh-%h-%p-%r', '-o', 'StrictHostKeyChecking=no', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'antares.ginsys.net', "/bin/sh -c '/usr/bin/python /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749/synchronize; rm -rf /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749/ >/dev/null 2>&1'"] | |
*** this hangs *** | |
on remote host: | |
serge 17775 0.0 0.0 3956 588 pts/0 Ss+ 09:27 0:00 | \_ /bin/sh -c /usr/bin/python /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749/synchronize; rm -rf /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749/ >/dev/null 2>&1 | |
serge 17776 0.1 0.2 29936 6140 pts/0 S+ 09:27 0:00 | \_ /usr/bin/python /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749/synchronize | |
serge 17777 0.0 0.0 3956 596 pts/0 S+ 09:27 0:00 | \_ /bin/sh -c rsync --archive --delay-updates --compress -v --temp-dir /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749 --rsh 'ssh -i None -o StrictHostKeyChecking=no' ./testfile serge@antares.ginsys.net:/tmp/ | |
serge 17778 0.0 0.0 10568 820 pts/0 S+ 09:27 0:00 | \_ rsync --archive --delay-updates --compress -v --temp-dir /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749 --rsh ssh -i None -o StrictHostKeyChecking=no ./testfile serge@antares.ginsys.net:/tmp/ | |
serge 17779 0.0 0.1 38384 2780 pts/0 S+ 09:27 0:00 | \_ ssh -i None -o StrictHostKeyChecking=no -l serge antares.ginsys.net rsync --server -vlogDtprze.iLsf --delay-updates --temp-dir /home/serge/.ansible/tmp/ansible-1373268430.09-24064282294749 . /tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -l | |
total 4 | |
lrwxrwxrwx 1 serge serge 57 Jul 8 09:23 action_plugins -> /home/serge/src/ansible/lib/ansible/runner/action_plugins | |
lrwxrwxrwx 1 serge serge 31 Jul 8 09:23 library -> /home/serge/src/ansible/library | |
-rw-rw-r-- 1 serge serge 126 Jul 8 09:16 synchtest.yml | |
-rw-rw-r-- 1 serge serge 0 Jul 8 09:15 testfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment