Hi everyone, We have a large 'hosts' file with many different host groups defined. When running ansible-playbook command with '-i' pointing to our hosts file, Ansible will then call our custom code in the VarsModule class of our vars plugin. Ansible calls the get_group_vars() function for each host group in the hosts file. As our hosts file contains a lot of host groups, this increases the time to load all of the vars from all of the host groups. I tried to limit the host group by using the "--limit" parameter but this still results in Ansible triggering for all host groups. Basically this results in about 7 seconds delay before Ansible starts the playbook. This can be costly since we run a lot of playbooks during our deployments.
Is there a better way to do this? Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/77e70764-2b3b-4ff9-90b3-ad579e97dccf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.