From: David Galloway Date: Thu, 23 Apr 2020 13:57:12 +0000 (-0400) Subject: common: Also define new NRPE_OPTS var X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F562%2Fhead;p=ceph-cm-ansible.git 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 --- diff --git a/roles/common/tasks/nagios.yml b/roles/common/tasks/nagios.yml index f7610bfd..fa11678f 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: