Not sure if this was a change in new NRPE or Ubuntu but let's just set both and cover our bases
Signed-off-by: David Galloway <dgallowa@redhat.com>
- name: Configure nagios nrpe settings (Ubuntu)
lineinfile:
dest: /etc/default/{{ nrpe_service_name }}
- regexp: "^DAEMON_OPTS"
- line: "DAEMON_OPTS=\"--no-ssl\""
+ regexp: "^{{ item }}"
+ line: "{{ item }}=\"--no-ssl\""
when: ansible_pkg_mgr == "apt"
+ with_items:
+ - DAEMON_OPTS
+ - NRPE_OPTS
+ notify:
+ - restart nagios-nrpe-server
- name: Configure nagios nrpe settings (RHEL/CentOS)
lineinfile: