Does Ansible has limitations on number of hosts that can be executed?
I think there is no hard coded limit. More hosts means more memory consumed by Ansible. Each host has a set of variables and facts for which memory space is allocated. Number of parallel Ansible processes, and thus CPU cores used, can be controlled by -f
parameter.
That being said, control node resources are the only limit.
For extra large number of hosts, AWX supports distributed scalable Ansible invocation.
3 Likes