Standardized task name for adding cgroup support;

Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com>
This commit is contained in:
Jon S. Stumpf 2023-12-02 21:33:21 -05:00
parent eddae16719
commit 7420fdc851
5 changed files with 6 additions and 5 deletions

View File

@ -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}"

View File

@ -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

View File

@ -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).*)$'

View File

@ -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).*)$'

View File

@ -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.