From 5e4ab5c9d206f7f795b0c3755b6481d2d80fb2ef Mon Sep 17 00:00:00 2001 From: David Mehren <git@herrmehren.de> Date: Thu, 26 May 2022 20:14:18 +0200 Subject: [PATCH] Fedora compatibility --- meta/main.yml | 2 +- templates/netdata.conf.j2 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/main.yml b/meta/main.yml index 0adfedd..dffb46d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -11,5 +11,5 @@ galaxy_info: dependencies: - src: https://gitlab.fachschaften.org/fsi-ansible/netdata-base.git scm: git - version: "v3.2.0" + version: "v3.3.0" name: netdata_base diff --git a/templates/netdata.conf.j2 b/templates/netdata.conf.j2 index 455fd9b..1779e5a 100644 --- a/templates/netdata.conf.j2 +++ b/templates/netdata.conf.j2 @@ -1,6 +1,10 @@ # {{ ansible_managed }} [global] memory mode = none +{% if ansible_distribution == 'Fedora' %} + run as user = netdata + stock config directory = /etc/netdata/conf.d +{% endif %} [web] mode = none -- GitLab