mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-06-23 10:04:44 +02:00
Standardized task name for adding cgroup support;
Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com>
This commit is contained in:
parent
eddae16719
commit
7420fdc851
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled for Archlinux
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/boot.txt
|
||||
search_string: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled for Centos
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/cmdline.txt
|
||||
backrefs: true
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
path: /boot/firmware/cmdline.txt
|
||||
register: boot_firmware_cmdline_txt
|
||||
|
||||
- name: Activating cgroup support
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ (boot_firmware_cmdline_txt.stat.exists) | ternary('/boot/firmware/cmdline.txt', '/boot/cmdline.txt') }}"
|
||||
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Activating cgroup support
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/cmdline.txt
|
||||
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on a Raspberry Pi
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/firmware/cmdline.txt
|
||||
backrefs: true
|
||||
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
||||
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
||||
notify: Reboot Pi
|
||||
|
||||
- name: Install Ubuntu Raspi Extra Packages
|
||||
ansible.builtin.apt:
|
||||
# Fixes issues in newer Ubuntu where VXLan isn't setup right.
|
||||
|
|
Loading…
Reference in New Issue
Block a user