mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
nagios: remove duplicate variable check
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
define hostgroup {
|
||||
hostgroup_name CheckSwap
|
||||
alias Swap-Is-Low
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true %}{{host}}{% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user