forked from evolix/ansible-roles
23 lines
487 B
YAML
23 lines
487 B
YAML
---
|
|
- include_role:
|
|
name: remount-usr
|
|
|
|
- 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
|