feat: add dependencies

This commit is contained in:
Adrien Waksberg 2022-11-09 14:11:22 +01:00
parent 32911bac43
commit e2ed6fb9b5
8 changed files with 65 additions and 12 deletions

View file

@ -13,7 +13,7 @@
owner: root
group: nagios
mode: 0750
loop: '{{ icinga2_scripts|dict2items }}'
loop: '{{ icinga2_scripts | dict2items }}'
loop_control:
label: '{{ item.key }}'
tags: icinga2
@ -28,6 +28,7 @@
loop:
- check_commands
- commands
- dependencies
- groups
- hosts
- notifications
@ -112,7 +113,7 @@
owner: root
group: nagios
mode: 0640
loop: '{{ icinga2_features|dict2items }}'
loop: '{{ icinga2_features | dict2items }}'
loop_control:
label: '{{ item.key }}'
notify: restart icinga2
@ -121,8 +122,8 @@
- name: manage features
community.general.icinga2_feature:
name: '{{ item.key }}'
state: '{{ item.state|default("present") }}'
loop: '{{ icinga2_features|dict2items }}'
state: '{{ item.state | default("present") }}'
loop: '{{ icinga2_features | dict2items }}'
loop_control:
label: '{{ item.key }}'
notify: restart icinga2