mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Simplify Ubuntu to reboot no matter what
This commit is contained in:
@@ -8,21 +8,7 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
- name: Read /proc/cmdline to check for cgroups already running
|
- name: Reboot to enable cgroups
|
||||||
slurp:
|
|
||||||
src: /proc/cmdline
|
|
||||||
register: slurped_cmdline
|
|
||||||
when:
|
|
||||||
- ansible_distribution == 'Ubuntu'
|
|
||||||
|
|
||||||
- name: Decode slurped command line
|
|
||||||
set_fact:
|
|
||||||
cmdline: "{{ slurped_cmdline.content | b64decode }}"
|
|
||||||
when:
|
|
||||||
- ansible_distribution == 'Ubuntu'
|
|
||||||
|
|
||||||
- name: Reboot to enable cgroups if not already enabled
|
|
||||||
reboot:
|
reboot:
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
- '"cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory" not in cmdline'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user