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.

15 lines
289 B

  1. - include_role:
  2. name: service
  3. vars:
  4. service_name: icinga2
  5. - debug:
  6. var: monitoring_host
  7. - name: add host monitoring
  8. template:
  9. src: host.conf.j2
  10. dest: "/etc/icinga2/conf.d/hosts/{{ item }}.conf"
  11. with_items:
  12. - "{{ monitoring_host }}"
  13. notify: reload icinga2