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: