From c745de930973500fa21b5cff0a55ca899690208e Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 15 Aug 2021 02:44:42 -0500 Subject: [PATCH] Reorder args on TCP checks to better match the natural sorting order of the iterations --- playbooks/tasks/web/nagios-hosts.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/tasks/web/nagios-hosts.cfg.j2 b/playbooks/tasks/web/nagios-hosts.cfg.j2 index 7a52df0..1458fb7 100644 --- a/playbooks/tasks/web/nagios-hosts.cfg.j2 +++ b/playbooks/tasks/web/nagios-hosts.cfg.j2 @@ -137,7 +137,7 @@ define service { {% for port in service.value.ports %} define service { use ansible-generic-service - service_description TCP {{ port }} - {{ service.value.name }} + service_description TCP {{ service.value.name }} - {{ port }} check_command check_tcp!{{ port }} host_name {{ host_name }} }