ansible-pilote/templates/nagios/conf.d/hosts.cfg.j2
Julien Riou 096a3e0540
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2024-04-27 15:21:55 +02:00

11 lines
256 B
Django/Jinja

{{ ansible_managed | comment }}
{% for host in nagios_hosts | default([]) %}
define host {
use {{ host['use'] }}
host_name {{ host['host_name'] }}
alias {{ host['alias'] }}
address {{ host['address'] }}
}
{% endfor %}