mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-26 00:22:36 +01:00
Merge pull request #54 from fnord123/issue40_cgroups_on_ubuntu_x86
Fix cgroups on ubuntu x86 (Issue 40)
This commit is contained in:
@@ -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:
|
lineinfile:
|
||||||
path: /boot/firmware/cmdline.txt
|
path: /boot/firmware/cmdline.txt
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
@@ -7,8 +7,12 @@
|
|||||||
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- 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:
|
reboot:
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
|
- ( ansible_facts.architecture is search("arm") or
|
||||||
|
ansible_facts.architecture is search("aarch64") )
|
||||||
|
|||||||
Reference in New Issue
Block a user