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 -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7216f6dc-92ec-4747-87bc-86d1e36d8386%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
