@ -1,10 +1,10 @@ | |||||
- include: status.yaml | |||||
- include: ldap.yaml | - include: ldap.yaml | ||||
- include: blogs.yaml | - include: blogs.yaml | ||||
- include: lists.yaml | - include: lists.yaml | ||||
- include: login.yaml | - include: login.yaml | ||||
- include: mail.yaml | - include: mail.yaml | ||||
- include: projects.yaml | - include: projects.yaml | ||||
- include: status.yaml | |||||
- include: users.yaml | - include: users.yaml | ||||
- include: webmail.yaml | - include: webmail.yaml | ||||
- include: wiki.yaml | - include: wiki.yaml |
@ -0,0 +1,15 @@ | |||||
- include_role: | |||||
name: service | |||||
vars: | |||||
service_name: icinga2 | |||||
- debug: | |||||
var: monitoring_host | |||||
- name: add host monitoring | |||||
template: | |||||
src: host.conf.j2 | |||||
dest: "/etc/icinga2/conf.d/hosts/{{ item }}.conf" | |||||
with_items: | |||||
- "{{ monitoring_host }}" | |||||
notify: reload icinga2 |
@ -0,0 +1,7 @@ | |||||
object Host "{{ item }}" { | |||||
import "generic-host" | |||||
vars.os = "Linux" | |||||
vars.address = "{{ hostvars | ip_from_inventory(item) }}" | |||||
vars.sla = "24x7" | |||||
} |