Simplify nagios client template items. (Thanks misc!)
This commit is contained in:
parent
b0cd472396
commit
51bdaac0a1
1 changed files with 12 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue