Icinga / ansible-collection-icinga

Collection to setup and manage components of the Icinga software stack
Apache License 2.0
45 stars 36 forks source link

Fix bad variable expansion concerning vars['var'] #293

Closed Donien closed 3 weeks ago

Donien commented 5 months ago

Calling vars['var'] is an explicit reference to the a play's vars key which makes defining those variables at host level impossible.

Also, when defining a variable in vars by providing a host variable the variable expansion breaks. vars -> key: "{{ host_variable_foo }}" will be returned as a literal string when looked up via vars['key'] without any expansion.

This commit fixes #291 by refering to just the variable name wherever suitable.