diff --git a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 index 65ccbce1e9..19698a63d3 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 @@ -4,7 +4,7 @@ ## {{ env }} {% for key, value in groups.iteritems() %} -{% if groups[key] and key is not 'all' %} +{% if groups[key] and key !='all' %} define hostgroup{ hostgroup_name {{ key }} alias {{ key }}