From 51bdaac0a146e010cbb64fff7cd1b903d2ff7dc7 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 24 Aug 2013 18:50:59 +0000 Subject: [PATCH] Simplify nagios client template items. (Thanks misc!) --- roles/nagios_client/tasks/main.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/roles/nagios_client/tasks/main.yml b/roles/nagios_client/tasks/main.yml index a04e3fb45b..bf045b0179 100644 --- a/roles/nagios_client/tasks/main.yml +++ b/roles/nagios_client/tasks/main.yml @@ -42,16 +42,20 @@ 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 client configs - template: src={{ item.src }} dest=/etc/nrpe.d/{{ item.dest }} + template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} with_items: - - { src: 'check_mirrorlist_cache.cfg.j2', dest: 'check_mirrorlist_cache.cfg' } - - { src: 'check_raid.cfg.j2', dest: 'check_raid.cfg' } - - { src: 'check_cron.cfg.j2', dest: 'check_cron.cfg' } - - { src: 'check_disk.cfg.j2', dest: 'check_disk.cfg' } - - { src: 'check_swap.cfg.j2', dest: 'check_swap.cfg' } - - { src: 'check_postfix_queue.cfg.j2', dest: 'check_postfix_queue.cfg' } - - { src: 'check_lock.cfg.j2', dest: 'check_lock.cfg' } + - check_mirrorlist_cache.cfg + - check_raid.cfg + - check_cron.cfg + - check_disk.cfg + - check_swap.cfg + - check_postfix_queue.cfg + - check_lock.cfg notify: - restart nrpe tags: