]> git.immae.eu Git - github/fretlink/ansible-netdata_straight.git/commitdiff
config: fix path when installed using static 4/head
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Wed, 3 Nov 2021 10:47:49 +0000 (11:47 +0100)
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Wed, 3 Nov 2021 11:08:53 +0000 (12:08 +0100)
tasks/config.yml

index 5f2928be6124c68499e5c4019bed3c56be8143a4..e12bc5b8c7a0985ef9699d46f1c68b22b615b4c4 100644 (file)
@@ -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 }}"
     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:
     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: