Commit a673318b authored by jpic ∞'s avatar jpic ∞ 💾
Browse files

Merge branch 'vinz' into 'master'

Multi distros support

See merge request !1
parents 22dd8aa8 82e52cf1
......@@ -7,21 +7,22 @@
state: directory
path: /etc/netdata
- name: Install dependencies
apt:
name: '{{ netdata_packages }}'
- name: Downlaod dependencies script
get_url:
url: "https://raw.githubusercontent.com/netdata/netdata-demo-site/master/install-required-packages.sh"
dest: /tmp/install-required-packages.sh
- name: Run dependencies script
shell: "bash /tmp/install-required-packages.sh netdata --dont-wait --non-interactive"
- name: enable & config KSM
blockinfile:
path: /etc/tmpfiles.d/ksm.conf
block: |
w /sys/kernel/mm/ksm/run - - - - 1
w /sys/kernel/mm/ksm/sleep_millisecs - - - - 1000
state: present
when: ansible_os_family == "Debian"
- name: enable sysfs KSM
lineinfile:
path: /etc/sysfs.conf
line: 'kernel/mm/ksm/run = 1'
- name: config sysfs KSM
lineinfile:
path: /etc/sysfs.conf
line: 'kernel/mm/ksm/sleep_millisecs = 1000'
create: true
- name: Clone repo
register: netdata_git
......
......@@ -38,18 +38,3 @@ remember:
- name: telegram_recipient
question: What is the recipient id(s) for telegram ? (You may add alert level. For example, -100311112222 212341234|critical)
when: telegram_bot_token is defined and telegram_bot_token != ''
netdata_packages:
- autoconf
- autoconf-archive
- autogen
- automake
- gcc
- git
- libmnl-dev
- make
- pkg-config
- uuid-dev
- zlib1g-dev
- sysfsutils
- libuv1-dev
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment