From 64cd952dacd66c310f5847d3cfae7f5eb87ed421 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 11 Feb 2014 19:58:15 +0000 Subject: [PATCH] Split these out for now. --- roles/nagios_client/tasks/main.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/roles/nagios_client/tasks/main.yml b/roles/nagios_client/tasks/main.yml index 6899966f91..1c054193a4 100644 --- a/roles/nagios_client/tasks/main.yml +++ b/roles/nagios_client/tasks/main.yml @@ -57,15 +57,26 @@ - check_postfix_queue.cfg - check_lock.cfg - check_fedmsg_hub_proc.cfg - - check_openvpn_link.cfg - when: datacenter != 'phx2' - - check_unbound_proc.cfg - when: inventory_hostname.startswith('unbound') notify: - restart nrpe tags: - config +# +# The actual items files here end in .j2 (they are templates) +# So when adding or modifying them change the .j2 version in git. +# +- name: install nrpe openvpn check config + template: src=check_openvpn_link.j2 dest=/etc/nrpe.d/{{ item }} + when: datacenter != 'phx2' +# +# The actual items files here end in .j2 (they are templates) +# So when adding or modifying them change the .j2 version in git. +# +- name: install nrpe unbound check config + template: src=check_unbound_proc.j2 dest=/etc/nrpe.d/{{ item }} + when: inventory_hostname.startswith('unbound') + - name: nrpe service start service: name=nrpe state=running enabled=true tags: