Skip to content
Snippets Groups Projects
Commit 0e852e72 authored by jurgenhaas's avatar jurgenhaas
Browse files

Configure KSM only if it is available

parent e71862f5
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,10 @@
notify:
- "Re-start NetData"
- name: "Check if KSM is available"
stat: path='/sys/kernel/mm/ksm'
register: ksm
# Note: copy module doesn't work here because parent directory /sys
# is not writable, not even by root
- name: "Configure KSM"
......@@ -74,6 +78,7 @@
value: '1'
- file: 'sleep_millisecs'
value: '1000'
when: ksm.stat.exists
notify:
- "Re-start NetData"
......
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