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 ***************************************************************
ESTABLISH CONNECTION FOR USER: user on PORT 22 TO host
REMOTE_MODULE setup
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’
PUT /tmp/tmpBIAyoA TO /home/user/.ansible/tmp/ansible-tmp-1412632555.94-137539659496075/setup
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