From d2b0a7832a72de0ceaf65ecdee4890d135593d1c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 23 Aug 2013 23:16:04 +0000 Subject: [PATCH] Fix nrpe templates so they install as .cfg files and not .cfg.j2 --- roles/nagios_client/tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/nagios_client/tasks/main.yml b/roles/nagios_client/tasks/main.yml index f1fc8d0d38..3156fedaa5 100644 --- a/roles/nagios_client/tasks/main.yml +++ b/roles/nagios_client/tasks/main.yml @@ -43,15 +43,15 @@ - config - name: install nrpe client configs - template: src=$item dest=/etc/nrpe.d/$item + template: src=${item.0} dest=/etc/nrpe.d/${item.1} with_items: - - check_mirrorlist_cache.cfg.j2 - - check_raid.cfg.j2 - - check_cron.cfg.j2 - - check_disk.cfg.j2 - - check_swap.cfg.j2 - - check_postfix_queue.cfg.j2 - - check_lock.cfg.j2 + - [ 'check_mirrorlist_cache.cfg.j2', 'check_mirrorlist_cache.cfg' ] + - [ 'check_raid.cfg.j2', 'check_raid.cfg' ] + - [ 'check_cron.cfg.j2', 'check_cron.cfg' ] + - [ 'check_disk.cfg.j2', 'check_disk.cfg' ] + - [ 'check_swap.cfg.j2', 'check_swap.cfg' ] + - [ 'check_postfix_queue.cfg.j2', 'check_postfix_queue.cfg' ] + - [ 'check_lock.cfg.j2', 'check_lock.cfg' ] notify: - restart nrpe tags: