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: