Hi,
upgrade-ing to Ansible 2.4, I have noticed that variables defined in 'group_vars/all.yaml', 'group_vars/groupX.yaml' no longer appear in 'hostvars'. I'm talking about referencing hostvars of _another_ host from currently executing one.
I have the following directory structure:
.
├── env
│ ├── dev
│ │ ├── group_vars
│ │ │ └── all.yaml
│ │ └── inventory
│ └── prod
│ ├── group_vars
│ │ └── all.yaml
│ └── inventory
├── group_vars
│ └── all.yaml
└── site.yaml
Only the variables defined at "inventory" level group_vars propagate to hostvars. This behavior has changed between 2.3-2.4.
In Ansible 2.3, if I needed a variable in hostvars to be define for all environments, I would put it to 'group_vars/all.yaml'. Now I have to duplicate it to all inventory's group_vars, which is .. suboptimal.
Q: is there any place (in Ansible2.4) where you could define "inventory variable defaults", common for all environments/inventories ??
Regards,
BranoZ