Fix NRPE config file permissions

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2019-08-02 00:23:34 +02:00 committed by Pierre-Yves Chibon
parent 7c2377748e
commit 0ce00beb99
2 changed files with 12 additions and 2 deletions

View file

@ -233,16 +233,26 @@
tags:
- nagios_client
- name: install nrpe config for the RabbitMQ checks
template:
src: "rabbitmq_args.ini.j2"
dest: "/etc/nrpe.d/rabbitmq_args.ini"
owner: root
group: nrpe
mode: 0640
when: inventory_hostname.startswith('rabbitmq')
tags:
- nagios_client
- name: install nrpe checks for the RabbitMQ cluster
template:
src: "{{ item }}.j2"
dest: "/etc/nrpe.d/{{ item }}"
owner: root
group: root
mode: 0600
mode: 0644
with_items:
- check_rabbitmq_server.cfg
- rabbitmq_args.cfg
when: inventory_hostname.startswith('rabbitmq')
notify:
- restart nrpe