feat: add notification commands
This commit is contained in:
parent
123156f412
commit
164ab5a269
6 changed files with 116 additions and 3 deletions
tasks
|
@ -6,6 +6,18 @@
|
|||
notify: reload icinga2
|
||||
tags: icinga2
|
||||
|
||||
- name: copy scripts
|
||||
ansible.builtin.copy:
|
||||
content: '{{ item.value }}'
|
||||
dest: '/etc/icinga2/scripts/{{ item.key }}'
|
||||
owner: root
|
||||
group: nagios
|
||||
mode: 0750
|
||||
loop: '{{ icinga2_scripts|dict2items }}'
|
||||
loop_control:
|
||||
label: '{{ item.key }}'
|
||||
tags: icinga2
|
||||
|
||||
- name: copy config files
|
||||
ansible.builtin.template:
|
||||
src: '{{ item }}.conf.j2'
|
||||
|
@ -15,6 +27,7 @@
|
|||
mode: 0640
|
||||
loop:
|
||||
- check_commands
|
||||
- commands
|
||||
- groups
|
||||
- hosts
|
||||
- notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue