Split default values ​​between multiple roles in Ansible?

I want to share defaults between different roles in Ansible. Is it possible to achieve this directly? Is there a workaround, perhaps a different approach to this problem? I just want to keep DRY defaults.

+4
source share
1 answer

Have you tried putting thoses variables in /etc/ansible/group_vars/all?

from the documentation :

The default value for the entire network should be defined as the "group_vars / all" parameter.

+9
source

All Articles