Makes variables that are set at the parent group level available to child groups.
Overview:
The current code base does away with [parentgroup:children] groups in favour of converting the parent group into a group at the same level as its children. However, this dismisses the fact that parent-child relationships add a level of precedence to variable assignments for groups. This PR adds this logic to better align ansible_spec variable assignments with how this is done in Ansible.
Example:
hosts file:
Makes variables set in ./group_vars/parentgroup/vars (or any files in the dir) available to hosts in the [group1] and [group2] groups.
TL;DR:
Makes variables that are set at the parent group level available to child groups.
Overview:
The current code base does away with [parentgroup:children] groups in favour of converting the parent group into a group at the same level as its children. However, this dismisses the fact that parent-child relationships add a level of precedence to variable assignments for groups. This PR adds this logic to better align ansible_spec variable assignments with how this is done in Ansible.
Example:
hosts file:
Makes variables set in ./group_vars/parentgroup/vars (or any files in the dir) available to hosts in the [group1] and [group2] groups.