Ansible Role Variables as Defaults

[jump directly to the code] Here is a trick for creating Ansible role vars (defined in role/vars/main.yml) so they act as role defaults (defined in role/defaults/main.yml) What does this mean, and why would it be interesting? An Ansible Role is a reusable and redistributable unit of code. Ansible Galaxy encourages code sharing via Roles. But the author of an Ansible Role cannot predict how the […]

Read Me 4 Comments