]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Also define new NRPE_OPTS var 562/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 23 Apr 2020 13:57:12 +0000 (09:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 23 Apr 2020 13:57:12 +0000 (09:57 -0400)
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>
roles/common/tasks/nagios.yml

index f7610bfd2ecd8634bb303d99fc0b469fc572c02d..fa11678f79fcab893c3d2db2f9685d84bd890219 100644 (file)
 - 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: