Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
377 B

- import_role: name='service'
vars:
service_name: 'icinga2'
tags:
- 'monitoring'
- debug:
var: 'monitoring_facts'
- name: 'MONITORING | configure HOST/{{ item.key }}'
template:
src: 'host.conf.j2'
dest: "/etc/icinga2/conf.d/hosts/{{ item.key }}.conf"
loop: '{{ monitoring_facts|dict2items }}'
notify: 'reload icinga2'
tags:
- 'monitoring'