ansible-role-orientdb/tasks/orientdb_monitoring.yml

19 lines
653 B
YAML

---
- name: orientdb_monitoring | OrientDB Nagios monitoring
tags: ['orientdb', 'orientdb_nagios']
block:
- name: orientdb_monitoring | Install the nagios nrpe configuration
ansible.builtin.template:
src: orientdb-nrpe.cfg.j2
dest: "{{ nrpe_include_dir }}/orientdb-nrpe.cfg"
owner: root
group: root
mode: "0444"
notify: Reload NRPE server
when: orientdb_nagios_enabled
- name: orientdb_monitoring | Remove the nagios nrpe configuration
ansible.builtin.file:
dest: "{{ nrpe_include_dir }}/orientdb-nrpe.cfg"
state: absent
when: not orientdb_nagios_enabled