Fixed some lint suggestions

This commit is contained in:
Francesco Antognazza
2023-02-06 10:11:03 +01:00
parent 29ead64f6a
commit 3e7f5b44b3
6 changed files with 41 additions and 28 deletions

View File

@@ -1,9 +1,10 @@
- name: Check if cgroup v2 is available
ansible.builtin.command: grep cgroup2 /proc/filesystems
register: cgroup2_present
changed_when: cgroup2_present.rc != 0
- name: Enable cgroup v2
ansible.builtin.command: 'grubby --update-kernel=ALL --add-args="systemd.unified_cgroup_hierarchy=1"'
become: true
when:
- cgroup2_present.rc != 0
- cgroup2_present.rc != 0