Here is a simple playbook test.yml:
Yes. The fact that you notice this might be explained in that you have an
extensive inventory, with lots of groups and group_vars etc?
Before 1.7.1, vars for hosts were read at the start of a play where that
host is targetted. But group vars were parsed each time again, for every
host that were member of a group. This made inialisation for a play
tareggting hosts: all painfully slow.
Now, the whole inventory (especially group_vars and host_vars) are parsed
in 1 pass, but completely.
This makes it a bit slower to initialize, but makes it lots faster at
execution.
Could you time the same test with this playbook?
- hosts: all
gather_facts: false
tasks:
- pause: seconds=0
Thanks for the reply. You led me on the right path. We found out that we generate a lot of IPs for our IP addressing plan and it takes a lot of time.
Thanks
Ludo