mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
* updated description
* use handler for the reboot * removed ARM cpu detection
This commit is contained in:
@@ -1,18 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on ARM
|
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on a Raspberry Pi
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /boot/firmware/cmdline.txt
|
path: /boot/firmware/cmdline.txt
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
||||||
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
||||||
when:
|
notify: reboot
|
||||||
- ansible_distribution == 'Ubuntu'
|
|
||||||
- ( ansible_facts.architecture is search("arm") or
|
|
||||||
ansible_facts.architecture is search("aarch64") )
|
|
||||||
|
|
||||||
- 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") )
|
|
||||||
|
|||||||
Reference in New Issue
Block a user