Merge pull request #54 from fnord123/issue40_cgroups_on_ubuntu_x86

Fix cgroups on ubuntu x86 (Issue 40)
This commit is contained in:
Julien DOCHE
2020-07-30 16:36:22 +02:00
committed by GitHub

View File

@@ -1,5 +1,5 @@
---
- name: Enable cgroup via boot commandline if not already enabled
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on ARM
lineinfile:
path: /boot/firmware/cmdline.txt
backrefs: yes
@@ -7,8 +7,12 @@
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
when:
- ansible_distribution == 'Ubuntu'
- ( ansible_facts.architecture is search("arm") or
ansible_facts.architecture is search("aarch64") )
- name: Reboot to enable cgroups
- name: Reboot to enable cgroups for Ubuntu on ARM
reboot:
when:
- ansible_distribution == 'Ubuntu'
- ( ansible_facts.architecture is search("arm") or
ansible_facts.architecture is search("aarch64") )