Initial commit
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s

This commit is contained in:
2024-12-19 10:25:37 +08:00
commit bf6ac11888
28 changed files with 742 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
- name: Setup boot entry facts
ansible.builtin.set_fact:
bootconf: "{{ setup_cgroupsv1_bootconf | default('/boot/loader/entries/arch.conf') }}"
- name: Append cgroupsv1 boot option
ansible.builtin.lineinfile:
path: "{{ bootconf }}"
regexp: '^(options.*rw)'
line: '\1 SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 systemd.unified_cgroup_hierarchy=0'
backrefs: true
notify: Reboot
- name: Flush handlers
ansible.builtin.meta: flush_handlers