diff --git a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 index 639ae9c70c..2afcf5c70e 100644 --- a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 @@ -2,7 +2,7 @@ {% if host.startswith('copr') and nagios_location == 'external' %} {% else %} define host { -{% if hostvars[host].nagios_Check_Services['nrpe'] == true and nagios_location == 'internal' %} +{% if hostvars[host]['nagios_Check_Services']['nrpe'] and nagios_location == 'internal' %} use defaulttemplate {% else %} use mincheck