From 8b5f72bb1236b48bba02bf9ac71194fa22655bfc Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 23 Apr 2020 09:57:12 -0400 Subject: [PATCH] common: Also define new NRPE_OPTS var 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 --- roles/common/tasks/nagios.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/common/tasks/nagios.yml b/roles/common/tasks/nagios.yml index f7610bf..fa11678 100644 --- a/roles/common/tasks/nagios.yml +++ b/roles/common/tasks/nagios.yml @@ -66,9 +66,14 @@ - 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: -- 2.39.5