Is it just my fault or a bug worth filing at github?

Synchronize module tries to push the files to the remote host even if it I 
try to do a local copy as seen on ansible docs:

# Synchronization of two paths both on the control machine
local_action: synchronize src=some/relative/path dest=/some/absolute/path


Ansible version is 1.4.1 from tar.gz (but reports 1.5?!)



PLAYBOOK:
---
- hosts: all
  connection: local
  tasks:
    - name: sample sync task
      local_action: synchronize src=test dest=/tmp/test



OUTPUT:

PLAY [all] 
******************************************************************** 

GATHERING FACTS 
*************************************************************** 
<testserver> EXEC ['/bin/sh', '-c', 'mkdir -p 
$HOME/.ansible/tmp/ansible-1385997194.31-262520491115608 && echo 
$HOME/.ansible/tmp/ansible-1385997194.31-262520491115608']
<testserver> REMOTE_MODULE setup 
<testserver> PUT /tmp/tmpjfo0o0 TO 
/root/.ansible/tmp/ansible-1385997194.31-262520491115608/setup
<testserver> EXEC ['/bin/sh', '-c', '/usr/bin/python 
/root/.ansible/tmp/ansible-1385997194.31-262520491115608/setup; rm -rf 
/root/.ansible/tmp/ansible-1385997194.31-262520491115608/ >/dev/null 2>&1']
ok: [testserver]

TASK: [sample sync task] 
******************************************************* 
<127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p 
$HOME/.ansible/tmp/ansible-1385997194.78-23795269113752 && echo 
$HOME/.ansible/tmp/ansible-1385997194.78-23795269113752']
<127.0.0.1> PUT /tmp/tmpv5kV3R TO 
/root/.ansible/tmp/ansible-1385997194.78-23795269113752/synchronize
<127.0.0.1> EXEC ['/bin/sh', '-c', '/usr/bin/python 
/root/.ansible/tmp/ansible-1385997194.78-23795269113752/synchronize; rm -rf 
/root/.ansible/tmp/ansible-1385997194.78-23795269113752/ >/dev/null 2>&1']
failed: [testserver] => {"cmd": "rsync --delay-updates --compress 
--timeout=10 --archive --rsh 'ssh  -o StrictHostKeyChecking=no' 
--out-format='<<CHANGED>>%i %n%L' test *root@testserver*:/tmp/test", 
"failed": true, "rc": 255}
msg: ssh: Could not resolve hostname testserver: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]


FATAL: all hosts have already failed -- aborting

PLAY RECAP 
******************************************************************** 
           to retry, use: --limit @/root/sync_test.retry

testserver                 : ok=1    changed=0    unreachable=0    
failed=1   



TIA,
Oliver

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to