diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/config.yml | 6 |
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: |