21 lines
449 B
YAML
21 lines
449 B
YAML
|
---
|
||
|
|
||
|
- name: "Install check_haproxy_stats script"
|
||
|
copy:
|
||
|
src: check_haproxy_stats.pl
|
||
|
dest: /usr/local/lib/nagios/plugins/check_haproxy_stats.pl
|
||
|
mode: "0755"
|
||
|
tags:
|
||
|
- haproxy
|
||
|
- nrpe
|
||
|
|
||
|
- name: "Add check_haproxy to sudoers"
|
||
|
lineinfile:
|
||
|
dest: /etc/sudoers.d/evolinux
|
||
|
line: 'nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_haproxy_stats.pl'
|
||
|
insertafter: '^nagios'
|
||
|
tags:
|
||
|
- haproxy
|
||
|
- nrpe
|
||
|
- sudo
|