Open koenpunt opened 7 years ago
In a role to install and configure Icinga2, we've made the decision to keep certain variables in a hash and came up agains the same issues regarding variables as hash getting overwritten. We solved this using the combine
filter and setting the default values under vars
in the role, see https://github.com/Icinga/ansible-icinga2/commit/0fd8afea4ff807eda5c2d3b51f98eea509150bfa. May or may not be suitable here.
Related: #89, #150
Now everyone that wants to customise a single option, they have to define the full hash.
With the defaults like:
Just setting the
default_ruby
requires me to define the full hash, e.g.:And now since 3.0.0 the
rubies
properties is added, which requires me to add that to my playbook configuration (or add a version constraint).There a way to get this working by setting hash_behaviour, but this isn't recommended:
So I suggest to change it to plain variables: