|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
# yamllint disable rule:line-length
|
|
|
|
|
---
|
|
|
|
|
- name: "Install nrpe"
|
|
|
|
|
openbsd_pkg:
|
|
|
|
@ -38,7 +39,7 @@
|
|
|
|
|
block: "{{ lookup('template', 'evolix_bsd.cfg.j2') }}"
|
|
|
|
|
path: /etc/nrpe.d/evolix.cfg
|
|
|
|
|
marker: "## {mark} ANSIBLE MANAGED BLOCK : Custom NRPE configuration file from EvoBSD"
|
|
|
|
|
create: yes
|
|
|
|
|
create: true
|
|
|
|
|
mode: "0644"
|
|
|
|
|
insertbefore: BOF
|
|
|
|
|
notify: restart nrpe
|
|
|
|
@ -49,7 +50,7 @@
|
|
|
|
|
lineinfile:
|
|
|
|
|
dest: /etc/nrpe.d/evolix.cfg
|
|
|
|
|
insertbefore: BOF
|
|
|
|
|
backrefs: yes
|
|
|
|
|
backrefs: true
|
|
|
|
|
regex: "allowed_hosts={{ nagios_nrpe_allowed_hosts | join(',') }}(.*)"
|
|
|
|
|
line: 'allowed_hosts={{ nagios_nrpe_allowed_hosts | join(",") }}\1'
|
|
|
|
|
tags:
|
|
|
|
|