synchronize module hangs after syncing files

313 views
Skip to first unread message

parad...@gmail.com

unread,
Oct 6, 2014, 6:18:03 PM10/6/14
to ansible...@googlegroups.com
hi , 

when doing this task :

 - name: rsync cms_tcl code to server
   synchronize:
     src=/home/user/code_checkout/cms_tcl
     dest=/var/www/wsgi/code recursive=yes

ansible hangs but i can see that the folder has been rsync'd correctly

GATHERING FACTS ***************************************************************
<host> ESTABLISH CONNECTION FOR USER: user on PORT 22 TO host
<host> REMOTE_MODULE setup
<host> EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1412632555.94-137539659496075 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1412632555.94-137539659496075 && echo $HOME/.ansible/tmp/ansible-tmp-1412632555.94-137539659496075'
<host> PUT /tmp/tmpBIAyoA TO /home/user/.ansible/tmp/ansible-tmp-1412632555.94-137539659496075/setup
<host> EXEC /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1412632555.94-137539659496075/setup'
ok: [host]

TASK: [code-deploy | rsync cms_tcl code to server] ***********************
<127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1412632556.27-122378061898864 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1412632556.27-122378061898864 && echo $HOME/.ansible/tmp/ansible-tmp-1412632556.27-122378061898864']
<127.0.0.1> PUT /tmp/tmprgIgZr TO /home/user/.ansible/tmp/ansible-tmp-1412632556.27-122378061898864/synchronize
<127.0.0.1> EXEC ['/bin/sh', '-c', u'LANG=C LC_CTYPE=C /usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1412632556.27-122378061898864/synchronize']



i then have to end it with Ctrl+c


when doing it for the second time it works ok (rsync has nothing to sync)

Thanks 

parad...@gmail.com

unread,
Oct 8, 2014, 1:15:37 AM10/8/14
to ansible...@googlegroups.com
I belive i found the issue ,

Just ran the rsync using the shell module with rsync , it worked great and did not hang
until i turned on verbrose mode with rsync (-v).
The directory i'm rsyncing from has a lot of very old files which origenaly came from
a windows file system and contain some kind of encoding that ansible doesnt like.
If someone has an idea howto find the specific file name creating the issue i could
try to repreduce and open a bug.

Thanks

Reply all
Reply to author
Forward
0 new messages