Is there someone who can explain to me why #Ansible loads group_vars so many times for every associated YAML file in the group_vars directory…?
I’ve done an experiment where I have a playbook that applies to a group of servers, and in this group there is 1 server only.
Still these files (e.g. group_vars/all/foo.yml) gets loaded 18 times per file. I don’t understand why!
You can see my experiment code here: https://paste.debian.net/hidden/bf9d6fc8/
If anyone can shed a light on this behaviour, please chime in!
There is an open issue on GH which I think is relevant: https://github.com/ansible/ansible/issues/82245
But I still wonder WHY… Is there some good reason for this that I’m missing?
#Linux #automation #devops