From 6c539194b566cd91f5593b10e6d62afd1fa151bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Wed, 3 Nov 2021 11:47:49 +0100 Subject: config: fix path when installed using static --- tasks/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/config.yml b/tasks/config.yml index 5f2928b..e12bc5b 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -82,7 +82,7 @@ loop_var: collector label: "{{ collector.name }}" vars: - netdata_collector_conf_dir: "/etc/netdata/{{ collector.type }}.d" + netdata_collector_conf_dir: "{{ netdata_prefix }}/etc/netdata/{{ collector.type }}.d" bash_content_tmp: "{{ collector.config.items() | sort | list | map('join','=') | list }}" bash_content: "{{ bash_content_tmp | map('regex_replace','(.*)=(.*)',collector.name ~ '_\\1=\\2') | join('\n') }}" yaml_content: "{{ collector.config | to_nice_yaml }}" @@ -104,7 +104,7 @@ loop_var: collector label: "{{ collector.name }}" vars: - netdata_old_collector_conf_dir: "/etc/netdata/{{ collector.replace }}.d" + netdata_old_collector_conf_dir: "{{ netdata_prefix }}/etc/netdata/{{ collector.replace }}.d" - name: Configure chart copy: @@ -119,7 +119,7 @@ loop_var: collector label: "{{ collector.name }}" vars: - netdata_collector_chart_dir: "/usr/libexec/netdata/charts.d/" + netdata_collector_chart_dir: "{{ netdata_prefix }}/usr/libexec/netdata/charts.d/" - name: Configure plugins health template: -- cgit v1.2.3