From d77643f4b72eb7ef820a5d971f57a18627b7a9ef Mon Sep 17 00:00:00 2001
From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de>
Date: Tue, 30 Jul 2019 12:30:52 +0200
Subject: [PATCH] Do not include .dkpg-new files in zabbix config

---
 zabbix-agent/templates/zabbix_agentd.conf.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zabbix-agent/templates/zabbix_agentd.conf.j2 b/zabbix-agent/templates/zabbix_agentd.conf.j2
index c256784..dd866dd 100644
--- a/zabbix-agent/templates/zabbix_agentd.conf.j2
+++ b/zabbix-agent/templates/zabbix_agentd.conf.j2
@@ -263,9 +263,9 @@ Hostname={{ ansible_fqdn }}
 # Include=
 
 {% if ansible_distribution_major_version is version("10", ">=") %}
-Include=/etc/zabbix/zabbix_agentd.conf.d/
+Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf
 {% else %}
-Include=/etc/zabbix/zabbix_agentd.d/
+Include=/etc/zabbix/zabbix_agentd.d/*.conf
 {% endif %}
 
 # Include=/usr/local/etc/zabbix_agentd.userparams.conf
-- 
GitLab