blob: 4c7e73681b17e830952cd4d35535944c27c9f170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---
- name: "Install pre-requisites"
apt:
name: "{{ item }}"
state: present
with_items:
- autoconf
- autoconf-archive
- autogen
- automake
- gcc
- git
- libmnl-dev
- make
- pkg-config
- uuid-dev
- zlib1g-dev
when: ansible_os_family == "Debian"
- name: "Install pre-requisites"
yum:
name: "{{ item }}"
state: present
with_items:
- autoconf
- autoconf-archive
- autogen
- automake
- curl
- gcc
- git
- jq
- libmnl-devel
- libuuid-devel
- make
- pkgconfig
- zlib-devel
when: ansible_os_family == "RedHat"
- name: "Clone repo"
git:
clone: yes
repo: https://github.com/firehol/netdata.git
dest: /tmp/netdata
- name: "Installation"
shell: cd /tmp/netdata/ && ./netdata-installer.sh --dont-wait --libs-are-really-here
- name: "Clean /tmp"
file:
path: /tmp/netdata
state: absent
- name: "KillAll"
shell: killall netdata
- name: "Daemon config"
systemd:
daemon_reload: yes
name: netdata
enabled: yes
state: started
|