AWX Task failed with more then 5 hosts

Hello everyone,

I have an Ansible AWX playbook that uses NetBox as a dynamic inventory source of truth (SoT). The playbook is designed to back up my devices and upload the backups to Git. The issue I’m facing is that the playbook works successfully for up to 5 devices. However, when I use a group with more than 5 devices, the playbook fails on one of the tasks, such as copying data to a folder, committing to Git, etc.

Please find my ansible.cfg configuration attached.

Does anyone know what could be causing this issue and how I can resolve it?

Thank you!

ansible.cfg
[defaults]
inventory = ./netbox_inventory.yml
retry_files_enabled = False
gathering = explicit
host_key_checking = False
connect_timeout = 60
force_valid_group_names = silently
interpreter_python = auto_silent
log_path = ./ansible.log

[persistent_connection]
command_timeout = 120

You’ve managed to create a playbook that is sensitive to some combination of strategy, forks, and batch size/serial. There will be lots of hints in Controlling playbook execution: strategies and more — Ansible Community Documentation, but my guess (based on gut reaction; little else to go on so far) is that you can force some “synchronization points” — i.e. places where you can ensure all hosts get caught up — by splitting your playbook into multiple plays. They’ll all still be in one file (the playbook), just as separate plays within that playbook.

1 Like