Skip to content

Commit 15d7301

Browse files
committed
Fixed variable expansion
1 parent dc0d956 commit 15d7301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/icingaweb2/tasks/modules/graphite.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
loop: "{{ _files }}"
2020
loop_control:
2121
loop_var: _file
22-
when: vars['icingaweb2_modules'][_module][_file] is defined
22+
when: icingaweb2_modules[_module][_file] is defined
2323
vars:
2424
_module: "{{ item.key }}"
2525
_files:
@@ -31,8 +31,8 @@
3131
group: "{{ icingaweb2_group }}"
3232
src: "files/{{ _file.src_path }}"
3333
dest: "{{ icingaweb2_modules_config_dir }}/{{ item.key }}/templates/{{ _file.name }}"
34-
when: vars['icingaweb2_modules'][_module]['custom_template_files'] is defined
35-
loop: "{{ vars['icingaweb2_modules'][_module]['custom_template_files'] }}"
34+
when: icingaweb2_modules[_module].custom_template_files is defined
35+
loop: "{{ icingaweb2_modules[_module].custom_template_files }}"
3636
loop_control:
3737
loop_var: _file
3838
vars:

0 commit comments

Comments
 (0)