|
54 | 54 | owner: 'root' |
55 | 55 | group: 'root' |
56 | 56 | mode: 0o644 |
57 | | - notify: 'icinga2_master: restart icinga2' |
| 57 | + notify: 'icinga2_master: icinga2 daemon --validate' |
58 | 58 | tags: |
59 | 59 | - 'icinga2_master:api_users' |
60 | 60 |
|
61 | 61 | - name: 'icinga2 feature enable api' |
62 | 62 | community.general.icinga2_feature: |
63 | 63 | name: 'api' |
64 | 64 | state: 'present' |
65 | | - notify: 'icinga2_master: restart icinga2' |
| 65 | + notify: 'icinga2_master: icinga2 daemon --validate' |
66 | 66 |
|
67 | 67 | - name: 'icinga2 feature enable notification' |
68 | 68 | community.general.icinga2_feature: |
69 | 69 | name: 'notification' |
70 | 70 | state: 'present' |
71 | | - notify: 'icinga2_master: restart icinga2' |
| 71 | + notify: 'icinga2_master: icinga2 daemon --validate' |
72 | 72 |
|
73 | 73 | - name: 'Deploy /etc/icinga2/features-available/influxdb.conf' |
74 | 74 | ansible.builtin.template: |
|
78 | 78 | owner: '{{ icinga2_master__icinga_user }}' |
79 | 79 | group: '{{ icinga2_master__icinga_user }}' |
80 | 80 | mode: 0o640 |
81 | | - notify: 'icinga2_master: restart icinga2' |
| 81 | + notify: 'icinga2_master: icinga2 daemon --validate' |
82 | 82 |
|
83 | 83 | - name: 'icinga2 feature enable influxdb' |
84 | 84 | community.general.icinga2_feature: |
85 | 85 | name: 'influxdb' |
86 | 86 | state: 'present' |
87 | | - notify: 'icinga2_master: restart icinga2' |
| 87 | + notify: 'icinga2_master: icinga2 daemon --validate' |
88 | 88 |
|
89 | 89 | tags: |
90 | 90 | - 'icinga2_master' |
|
105 | 105 | args: |
106 | 106 | creates: '/var/lib/icinga2/certs/{{ icinga2_master__cn }}.crt' |
107 | 107 | register: 'icinga2_master__node_setup_result' |
108 | | - notify: 'icinga2_master: restart icinga2' |
| 108 | + notify: 'icinga2_master: icinga2 daemon --validate' |
109 | 109 |
|
110 | 110 | - name: 'Output of the node setup' |
111 | 111 | ansible.builtin.debug: |
|
172 | 172 | {% endif %} |
173 | 173 | args: |
174 | 174 | creates: "/var/lib/icinga2/certs/{{ icinga2_master__cn }}.crt" |
175 | | - notify: 'icinga2_master: restart icinga2' |
| 175 | + notify: 'icinga2_master: icinga2 daemon --validate' |
176 | 176 |
|
177 | 177 | - name: 'Make sure that the api-users.conf is included in /etc/icinga2/icinga2.conf' |
178 | 178 | ansible.builtin.lineinfile: |
|
198 | 198 | owner: '{{ icinga2_master__icinga_user }}' |
199 | 199 | group: '{{ icinga2_master__icinga_user }}' |
200 | 200 | mode: 0o640 |
201 | | - notify: 'icinga2_master: restart icinga2' |
| 201 | + notify: 'icinga2_master: icinga2 daemon --validate' |
202 | 202 |
|
203 | 203 | tags: |
204 | 204 | - 'icinga2_master' |
|
0 commit comments