mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Try to exclude rdu3 hosts from the iad2 nagios template
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
{%- for host in groups[key]|sort if hostvars[host].nagios_Can_Connect == true %}
|
||||
{%- for host in groups[key]|sort if hostvars[host].nagios_Can_Connect == true and hostvars[host].datacenter == 'iad2' %}
|
||||
{% if loop.first +%}
|
||||
members {{ host }}{% else %}, {{ host }}{% endif %}
|
||||
{% endfor +%}
|
||||
|
||||
Reference in New Issue
Block a user