ajout de dpkg et ajout de checkresults

This commit is contained in:
root 2021-01-12 15:14:30 +01:00
parent 32e4b3d7ea
commit 56cd0c515b

View File

@ -59,7 +59,6 @@
notify:
- restart icinga
- name: attribution des droits dossier icinga rw
file:
path: /var/lib/icinga/rw
@ -69,6 +68,32 @@
notify:
- restart icinga
- name: activation des commandes externes
replace:
dest: /etc/icinga/icinga.cfg
regexp: 'check_external_commands=0'
replace: 'check_external_commands=1'
notify:
- restart icinga
- name: reconfiguration des droits avec dpkg statoverride
shell: dpkg-statoverride --update --add nagios www-data 2710 /var/lib/icinga/rw
- name: reconfiguration des droits avec dpkg statoverride
shell: dpkg-statoverride --update --add nagios nagios 751 /var/lib/icinga
- name: suppression de checkresults
file:
path: /var/lib/icinga/spool/checkresults
state: absent
- name: creation du dossier checkresults avec droits de lecture
file:
path:/var/lib/icinga/spool/checkresults
state: directory
owner: nagios
group: root
mode: '755'
#- name: Changement droit notif
# shell: chmod 644 /var/log/icinga/icinga.log