From 4fe85007f019d32ac0e93ad5cb425fff4382d325 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 22 Feb 2020 20:52:51 +0000 Subject: [PATCH] nagios: fix up aws group template Signed-off-by: Kevin Fenzi --- .../templates/nagios/hosts/aws-hosts.cfg.j2 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 index 63b49a9556..4018a74e8b 100644 --- a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 @@ -1,12 +1,6 @@ {% for host in groups['ec2']|sort %} -{% if hostvars[host].nagios_Check_Services['ping'] %} define host { -{% if vars['nagios_location'] == 'internal' %} - use aws -{% else %} - use aws -{% endif %} - + use aws host_name {{ host }} {% if hostvars[host].ansible_hostname is defined %} alias {{ hostvars[host].ansible_hostname }} @@ -15,5 +9,4 @@ define host { {% endif %} address {{ host }} } -{% endif %} {% endfor %}