Skip to content

Commit

Permalink
Fixed variable expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Nov 13, 2024
1 parent dc0d956 commit 15d7301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/icingaweb2/tasks/modules/graphite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
loop: "{{ _files }}"
loop_control:
loop_var: _file
when: vars['icingaweb2_modules'][_module][_file] is defined
when: icingaweb2_modules[_module][_file] is defined
vars:
_module: "{{ item.key }}"
_files:
Expand All @@ -31,8 +31,8 @@
group: "{{ icingaweb2_group }}"
src: "files/{{ _file.src_path }}"
dest: "{{ icingaweb2_modules_config_dir }}/{{ item.key }}/templates/{{ _file.name }}"
when: vars['icingaweb2_modules'][_module]['custom_template_files'] is defined
loop: "{{ vars['icingaweb2_modules'][_module]['custom_template_files'] }}"
when: icingaweb2_modules[_module].custom_template_files is defined
loop: "{{ icingaweb2_modules[_module].custom_template_files }}"
loop_control:
loop_var: _file
vars:
Expand Down

0 comments on commit 15d7301

Please sign in to comment.