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

  1. - import_role: name='service'
  2. vars:
  3. service_name: 'icinga2'
  4. tags:
  5. - 'monitoring'
  6. - debug:
  7. var: 'monitoring_facts'
  8. - name: 'MONITORING | configure HOST/{{ item.key }}'
  9. template:
  10. src: 'host.conf.j2'
  11. dest: "/etc/icinga2/conf.d/hosts/{{ item.key }}.conf"
  12. loop: '{{ monitoring_facts|dict2items }}'
  13. notify: 'reload icinga2'
  14. tags:
  15. - 'monitoring'