Skip to content
Snippets Groups Projects
Commit 863b4d10 authored by jurgenhaas's avatar jurgenhaas
Browse files

#4 Restructure installation

parent 3f1865f4
No related branches found
No related tags found
No related merge requests found
---
# file: roles/netdata/handlers/main.yml
- name: "Install and configure NetData"
shell: ./netdata-installer.sh --dont-wait
args:
chdir: /opt/netdata
- name: "Include NetData to Boot-List"
command: update-rc.d netdata defaults
......
---
# file: roles/netdata/tasks/install.yml
- name: "Clone NetData"
git:
accept_hostkey: true
repo: "https://github.com/firehol/netdata.git"
dest: "/opt/netdata"
force: yes
register: netdata_clone
notify:
- "Re-start NetData"
- name: "Install and configure NetData"
shell: ./netdata-installer.sh --dont-wait
args:
chdir: /opt/netdata
when: netdata_clone.changed
......@@ -32,15 +32,7 @@
path='/etc/netdata/python.d'
state='directory'
- name: "Clone NetData"
git:
accept_hostkey: true
repo: "https://github.com/firehol/netdata.git"
dest: "/opt/netdata"
force: yes
notify:
- "Install and configure NetData"
- "Re-start NetData"
- include: install.yml
- name: "Install startup script"
template:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment