You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: roles/icingaweb2/tasks/modules/director.yml
+3-12Lines changed: 3 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -25,25 +25,16 @@
25
25
register: _pending
26
26
changed_when: _pending.rc|int == 0
27
27
failed_when: _pending.stdout|length > 0
28
-
when: icingaweb2_modules['director']['import_schema'] is defined and icingaweb2_modules.director.import_schema and icingaweb2_modules['director']['config'] is defined
when: icingaweb2_modules['director']['import_schema'] is defined and icingaweb2_modules.director.import_schema and icingaweb2_modules['director']['config'] is defined and _pending.rc|int == 0
28
+
notify: "run_director_migrations"
34
29
35
30
- name: Module Director | Check if kickstart is required # noqa: command-instead-of-shell
36
31
ansible.builtin.shell:
37
32
cmd: icingacli director kickstart required
38
33
register: _required
39
-
changed_when: _required.rc|int == 0
34
+
changed_when: (_required.rc|int == 0) or (".icinga_host' doesn't exist" in _required.stderr)
40
35
failed_when: _required.rc|int >= 2
41
36
when: icingaweb2_modules['director']['run_kickstart'] is defined and icingaweb2_modules.director.run_kickstart and icingaweb2_modules['director']['kickstart'] is defined
42
-
43
-
- name: Module Director | Run kickstart if required # noqa: command-instead-of-shell
44
-
ansible.builtin.shell:
45
-
cmd: icingacli director kickstart run
46
-
when: icingaweb2_modules['director']['run_kickstart'] is defined and icingaweb2_modules.director.run_kickstart and icingaweb2_modules['director']['kickstart'] is defined and _required.rc|int == 0
37
+
notify: "run_director_kickstart"
47
38
48
39
- name: Module Director | Ensure installation from source is complete
0 commit comments