Why is the sync module hanging in Ansible Automation Platform?
Issue
- While running a playbook using the synchronize module in Ansible Automation Platform the Job Template is hanging and there are no errors:
TASK [Synchronize task to host] ***************************************
task path: /runner/project/sync.yml:27
<10.10.10.18> ESTABLISH LOCAL CONNECTION FOR USER: root
<10.10.10.18> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/runner/.ansible/tmp/ansible-local-218kosh9oc `"&& mkdir "` echo /home/runner/.ansible/tmp/ansible-local-218kosh9oc/ansible-tmp-1686648937.4979122-88-203371227075266 `" && echo ansible-tmp-1686648937.4979122-88-203371227075266="` echo /home/runner/.ansible/tmp/ansible-local-218kosh9oc/ansible-tmp-1686648937.4979122-88-203371227075266 `" ) && sleep 0'
Using module file /usr/share/ansible/collections/ansible_collections/ansible/posix/plugins/modules/synchronize.py
<10.10.10.18> PUT /home/runner/.ansible/tmp/ansible-local-218kosh9oc/tmp04ota4ig TO /home/runner/.ansible/tmp/ansible-local-218kosh9oc/ansible-tmp-1686648937.4979122-88-203371227075266/AnsiballZ_synchronize.py
<10.10.10.18> EXEC /bin/sh -c 'chmod u+x /home/runner/.ansible/tmp/ansible-local-218kosh9oc/ansible-tmp-1686648937.4979122-88-203371227075266/ /home/runner/.ansible/tmp/ansible-local-218kosh9oc/ansible-tmp-1686648937.4979122-88-203371227075266/AnsiballZ_synchronize.py && sleep 0'
<10.10.10.18> EXEC /bin/sh -c '/usr/bin/python3.9 /home/runner/.ansible/tmp/ansible-local-218kosh9oc/ansible-tmp-1686648937.4979122-88-203371227075266/AnsiballZ_synchronize.py && sleep 0'
-
Using the posix.synchronize module, the playbook hangs (no errors, runs indefinitely).
-
Other Ansible modules work fine.
Environment
Ansible Automation Platform 2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.