nagios: fix the ibiblio-hosts-ipv6 ifdef

Fixes: #11264
This commit is contained in:
Pavel Raiskup 2023-04-25 16:34:51 +02:00 committed by praiskup
parent aa217956b1
commit 4a999c925b

View file

@ -5,11 +5,10 @@
{% if hostvars[host].datacenter == 'ibiblio' and hostvars[host].nagios_Can_Connect == true %} {% if hostvars[host].datacenter == 'ibiblio' and hostvars[host].nagios_Can_Connect == true %}
define host { define host {
use mincheck6 use mincheck6
host_name {{ hostvars[host].ansible_hostname }}-ipv6.fedoraproject.org host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %} {% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}-ipv6 alias {{ hostvars[host].ansible_hostname }}-ipv6
{% else %} alias {{ hostvars[host].ansible_hostname }}-ipv6.fedoraproject.org
alias {{ host }}
{% endif %} {% endif %}
{% if hostvars[host].eth0_ipv6_ip is defined %} {% if hostvars[host].eth0_ipv6_ip is defined %}
address {{ hostvars[host].eth0_ipv6_ip }} address {{ hostvars[host].eth0_ipv6_ip }}