Skip to content

Commit 36c6186

Browse files
committed
Fix modules not being installed when disabled
Fixes #404
1 parent 08c1a8f commit 36c6186

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bugfixes:
2+
- |
3+
Fix issue where the package for any given Icinga Web 2 module was not installed if that module had set :code:`enabled: false`.
4+
Modules are now installed and configured properly even when they are set to be disabled in the end.

roles/icingaweb2/tasks/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
loop: "{{ icingaweb2_modules | dict2items }}"
2929
loop_control:
3030
label: "{{ item.key }}"
31-
when: icingaweb2_modules is defined and icingaweb2_module_packages[item.key] is defined and item.value.enabled | bool == true and item.value.source == "package"
31+
when:
32+
- icingaweb2_modules is defined
33+
- icingaweb2_module_packages[item.key] is defined
34+
- item.value.source == "package"
3235
no_log: true
3336

3437
- name: Check supported operatingsystems

0 commit comments

Comments
 (0)