Revert "Add Alpine Linux configuration"

This commit is contained in:
Vincent RABAH
2021-01-28 17:29:51 +01:00
committed by GitHub
parent dbbdfdff4a
commit 937f20d9ca
12 changed files with 74 additions and 214 deletions

View File

@@ -1,29 +0,0 @@
---
- name: Add cgroup mount point
lineinfile:
path: /etc/fstab
line: cgroup /sys/fs/cgroup cgroup defaults 0 0
- name: Define cgroup mount points
copy:
content: |
mount {
cpuacct = /cgroup/cpuacct;
memory = /cgroup/memory;
devices = /cgroup/devices;
freezer = /cgroup/freezer;
net_cls = /cgroup/net_cls;
blkio = /cgroup/blkio;
cpuset = /cgroup/cpuset;
cpu = /cgroup/cpu;
}
dest: /etc/cgconfig.conf
mode: 0644
- name: Enable cgroup via boot commandline if not already enabled
lineinfile:
path: /media/mmcblk0p1/cmdline.txt
backrefs: yes
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
notify: lbu