mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
have to add group by group to see where break is
This commit is contained in:
@@ -2,16 +2,6 @@
|
||||
# All Servers and associated devices
|
||||
###############
|
||||
## {{ env }}
|
||||
{% for key, value in groups.iteritems()|sort %}
|
||||
{% if groups[key] != [] and key not in vars['exclude_hostgroups'] %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name no_ping
|
||||
|
||||
Reference in New Issue
Block a user