From 206873b92f9eabb50ad45c3e9c2a8f9588a7d17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 26 May 2023 16:18:41 +0200 Subject: [PATCH] Fix the collectd network plugin config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/collectd/base/templates/network-client.conf.j2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roles/collectd/base/templates/network-client.conf.j2 b/roles/collectd/base/templates/network-client.conf.j2 index e39c76f651..6058067595 100644 --- a/roles/collectd/base/templates/network-client.conf.j2 +++ b/roles/collectd/base/templates/network-client.conf.j2 @@ -1,8 +1,11 @@ LoadPlugin network - Server "log01" - {% if ansible_distribution_major_version != '6' %} +{% if ansible_distribution_major_version != '6' %} + Server "log01" +{% else %} + ResolveInterval 14400 - {% endif %} + +{% endif %}