Newer
Older
---
# file: roles/netdata/tasks/install.yml
- name: "Clone NetData"
git:
accept_hostkey: true
when: netdata_local_archive is not defined
notify:
- "Restart NetData"
- name: "Extract NetData Archive"
unarchive:
src: '/opt/{{ netdata_local_archive }}.zip'
dest: '/opt'
remote_src: yes
when: netdata_local_archive is defined
- "Restart NetData"
- name: "Install and configure NetData"
shell: ./netdata-installer.sh --dont-wait
args:
chdir: /opt/{{ netdata_local_archive|default('netdata') }}
- name: "Install Custom Charts"
template:
src: '{{ item }}.chart.sh'
dest: '/usr/libexec/netdata/charts.d/{{ item }}.chart.sh'
with_items:
- 'fluentd_buffer'
notify:
- "Restart NetData"
- name: "Install Custom Alerts"
template:
dest: '/etc/netdata/health.d/{{ item }}.conf'
with_items:
- 'fluentd_buffer'
notify:
- "Restart NetData"