chore: remove grub config
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1027a1ad75
commit
11bf6fe4c8
|
@ -18,8 +18,5 @@ kernel_blacklist_modules: []
|
|||
|
||||
kernel_namespace_support_enabled: False
|
||||
kernel_coredump_enabled: True
|
||||
kernel_cgroup_v2_enabled: False
|
||||
|
||||
kernel_grub_rebuild_force: False
|
||||
|
||||
kernel_ipv6_enabled: False
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
hosts: all
|
||||
vars:
|
||||
kernel_coredump_enabled: False
|
||||
|
||||
kernel_ipv6_enabled: True
|
||||
roles:
|
||||
- role: xoxys.kernel
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
hosts: all
|
||||
vars:
|
||||
kernel_coredump_enabled: False
|
||||
kernel_cgroup_v2_enabled: True
|
||||
|
||||
kernel_ipv6_enabled: True
|
||||
roles:
|
||||
- role: xoxys.kernel
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
- name: Ensure grubby is installed
|
||||
package:
|
||||
name: grubby
|
||||
state: present
|
||||
|
||||
- name: Check current state of cgroup
|
||||
command: grep -Eq '^kernelopts=.* systemd\.unified_cgroup_hierarchy=1' /boot/grub2/grubenv
|
||||
register: __kernel_cgroup_exception
|
||||
check_mode: False
|
||||
failed_when: False
|
||||
changed_when: False
|
||||
|
||||
- name: Enabled cgroup v2 configuration
|
||||
command: grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1"
|
||||
when:
|
||||
- __kernel_cgroup_exception.rc != 0
|
||||
- kernel_cgroup_v2_enabled | bool
|
||||
notify:
|
||||
- __kernel_grub_rebuild
|
||||
- __kernel_server_restart
|
||||
|
||||
- name: Disable cgroup v2 configuration
|
||||
command: grubby --update-kernel=ALL --remove-args="systemd.unified_cgroup_hierarchy"
|
||||
when:
|
||||
- __kernel_cgroup_exception.rc == 0
|
||||
- not kernel_cgroup_v2_enabled | bool
|
||||
notify:
|
||||
- __kernel_grub_rebuild
|
||||
- __kernel_server_restart
|
||||
|
||||
- name: Force rebuild grub config and reboot
|
||||
command: /bin/true
|
||||
notify:
|
||||
- __kernel_grub_rebuild
|
||||
- __kernel_server_restart
|
||||
when: kernel_grub_rebuild_force | bool
|
|
@ -2,7 +2,3 @@
|
|||
- include_tasks: kernel.yml
|
||||
- include_tasks: coredump.yml
|
||||
when: not (kernel_coredump_enabled | bool)
|
||||
- include_tasks: cgroup.yml
|
||||
when:
|
||||
- ansible_os_family | lower == "redhat"
|
||||
- ansible_distribution_major_version == "8"
|
||||
|
|
Loading…
Reference in New Issue