feat: add dependencies
This commit is contained in:
parent
32911bac43
commit
e2ed6fb9b5
8 changed files with 65 additions and 12 deletions
tasks
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue