aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorGaƫtan <36162164+gaetanfl@users.noreply.github.com>2021-11-03 14:14:03 +0100
committerGitHub <noreply@github.com>2021-11-03 14:14:03 +0100
commit51a5caaf6cffe2a422e4e918ac278d7b5ffe35dd (patch)
tree35db6b4062fbdd2607be20405c1691d2a06837ba /tasks
parent9f55450f44645d9479bdbb2b9209c566f26e4d10 (diff)
parent6c539194b566cd91f5593b10e6d62afd1fa151bf (diff)
downloadansible-netdata_straight-0.1.0.tar.gz
ansible-netdata_straight-0.1.0.tar.zst
ansible-netdata_straight-0.1.0.zip
Merge pull request #4 from fretlink/fix_config_pathv0.1.0
config: fix path when installed using static
Diffstat (limited to 'tasks')
-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: