aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-03 11:47:49 +0100
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-03 12:08:53 +0100
commit6c539194b566cd91f5593b10e6d62afd1fa151bf (patch)
tree35db6b4062fbdd2607be20405c1691d2a06837ba
parent9f55450f44645d9479bdbb2b9209c566f26e4d10 (diff)
downloadansible-netdata_straight-6c539194b566cd91f5593b10e6d62afd1fa151bf.tar.gz
ansible-netdata_straight-6c539194b566cd91f5593b10e6d62afd1fa151bf.tar.zst
ansible-netdata_straight-6c539194b566cd91f5593b10e6d62afd1fa151bf.zip
config: fix path when installed using static
-rw-r--r--tasks/config.yml6
1 files 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 @@
82 loop_var: collector 82 loop_var: collector
83 label: "{{ collector.name }}" 83 label: "{{ collector.name }}"
84 vars: 84 vars:
85 netdata_collector_conf_dir: "/etc/netdata/{{ collector.type }}.d" 85 netdata_collector_conf_dir: "{{ netdata_prefix }}/etc/netdata/{{ collector.type }}.d"
86 bash_content_tmp: "{{ collector.config.items() | sort | list | map('join','=') | list }}" 86 bash_content_tmp: "{{ collector.config.items() | sort | list | map('join','=') | list }}"
87 bash_content: "{{ bash_content_tmp | map('regex_replace','(.*)=(.*)',collector.name ~ '_\\1=\\2') | join('\n') }}" 87 bash_content: "{{ bash_content_tmp | map('regex_replace','(.*)=(.*)',collector.name ~ '_\\1=\\2') | join('\n') }}"
88 yaml_content: "{{ collector.config | to_nice_yaml }}" 88 yaml_content: "{{ collector.config | to_nice_yaml }}"
@@ -104,7 +104,7 @@
104 loop_var: collector 104 loop_var: collector
105 label: "{{ collector.name }}" 105 label: "{{ collector.name }}"
106 vars: 106 vars:
107 netdata_old_collector_conf_dir: "/etc/netdata/{{ collector.replace }}.d" 107 netdata_old_collector_conf_dir: "{{ netdata_prefix }}/etc/netdata/{{ collector.replace }}.d"
108 108
109- name: Configure chart 109- name: Configure chart
110 copy: 110 copy:
@@ -119,7 +119,7 @@
119 loop_var: collector 119 loop_var: collector
120 label: "{{ collector.name }}" 120 label: "{{ collector.name }}"
121 vars: 121 vars:
122 netdata_collector_chart_dir: "/usr/libexec/netdata/charts.d/" 122 netdata_collector_chart_dir: "{{ netdata_prefix }}/usr/libexec/netdata/charts.d/"
123 123
124- name: Configure plugins health 124- name: Configure plugins health
125 template: 125 template: