mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
Filter the mincheckgrp hostgroup
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
@@ -33,7 +33,7 @@ define hostgroup{
|
||||
define hostgroup{
|
||||
hostgroup_name mincheckgrp
|
||||
alias mincheckgrp
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['nrpe'] != true and hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].datacenter == datacenter and hostvars[host].nagios_Check_Services['nrpe'] != true and hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user