From: Gaƫtan Duchaussois Date: Wed, 3 Nov 2021 10:47:49 +0000 (+0100) Subject: config: fix path when installed using static X-Git-Tag: v0.1.0^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6c539194b566cd91f5593b10e6d62afd1fa151bf;p=github%2Ffretlink%2Fansible-netdata_straight.git config: fix path when installed using static --- 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: