From d4ad74ae5ee49d1aadaeb19e15435e16d079e9e4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 2 Sep 2021 10:28:20 -0700 Subject: [PATCH] nagios / vpnclients: fix typo in previous commit group was used, but ansible needs groups here. Signed-off-by: Kevin Fenzi --- .../nagios_server/templates/nagios/hostgroups/vpnclients.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/vpnclients.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/vpnclients.cfg.j2 index 50b29beafb..08a289b8e1 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/vpnclients.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/vpnclients.cfg.j2 @@ -3,7 +3,7 @@ define hostgroup { hostgroup_name vpnclients alias vpnclients - members {% for host in groups['all']|sort %}{% if ( hostvars[host].vpn == true ) and ( hostvars[host].nagios_Can_Connect == true ) and (host not in group['ocp_stg', 'ocp']) %}{{host}},{% endif %}{% endfor %} + members {% for host in groups['all']|sort %}{% if ( hostvars[host].vpn == true ) and ( hostvars[host].nagios_Can_Connect == true ) and (host not in groups['ocp_stg', 'ocp']) %}{{host}},{% endif %}{% endfor %} } # TODO: Add !bastion02.iad2.fedoraproject.org above when it exists.