postgresql: regexp for NRPE check lininfile

This commit is contained in:
Jérémy Lecour 2016-12-23 22:50:36 +01:00
parent d0314264df
commit adedad0403

View file

@ -16,6 +16,7 @@
- name: Add NRPE check
lineinfile:
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}}"'
when: postgresql_create_nrpe_user.changed
notify: restart nagios-nrpe-server