forked from evolix/ansible-roles
postgresql: regexp for NRPE check lininfile
This commit is contained in:
parent
d0314264df
commit
adedad0403
|
@ -16,6 +16,7 @@
|
||||||
- name: Add NRPE check
|
- name: Add NRPE check
|
||||||
lineinfile:
|
lineinfile:
|
||||||
name: /etc/nagios/nrpe.d/evolix.cfg
|
name: /etc/nagios/nrpe.d/evolix.cfg
|
||||||
|
regexp: '^command\[check_pgsql\]='
|
||||||
line: 'command[check_pgsql]=/usr/lib/nagios/plugins/check_pgsql -H localhost -l nrpe -p "{{postgresql_nrpe_password.stdout}}"'
|
line: 'command[check_pgsql]=/usr/lib/nagios/plugins/check_pgsql -H localhost -l nrpe -p "{{postgresql_nrpe_password.stdout}}"'
|
||||||
when: postgresql_create_nrpe_user.changed
|
when: postgresql_create_nrpe_user.changed
|
||||||
notify: restart nagios-nrpe-server
|
notify: restart nagios-nrpe-server
|
||||||
|
|
Loading…
Reference in a new issue