feat: add notification commands

This commit is contained in:
Adrien Waksberg 2021-08-15 18:42:01 +02:00 committed by Adrien Waksberg
parent 123156f412
commit 164ab5a269
6 changed files with 116 additions and 3 deletions

View file

@ -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