Skip to content

Instantly share code, notes, and snippets.

@tiernano
Last active June 14, 2016 14:42
Show Gist options
  • Save tiernano/060ade45b4e17ab1349c4b42b36d93db to your computer and use it in GitHub Desktop.
Save tiernano/060ade45b4e17ab1349c4b42b36d93db to your computer and use it in GitHub Desktop.
---
- hosts: netdata
vars:
repo: https://github.com/firehol/netdata.git
tmpdir: /tmp/netdata
ndbin: /usr/local/sbin/netdata
ndinstaller: ./netdata-installer.sh --dont-wait
remote_user: root
tasks:
- name: install prereqs
apt: name={{ item }} state=installed
with_items:
- zlib1g-dev
- uuid-dev
- libmnl-dev
- gcc
- make
- git
- autoconf
- autogen
- automake
- pkg-config
- name: clone netdata
git: repo={{repo}} dest={{tmpdir}} depth=1
- name: install netdata
shell: "{{ndinstaller}} chdir={{tmpdir}} creates={{ndbin}}"
@tiernano
Copy link
Author

no idea what i am doing yet... hopefully i will soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment