Minor grub related changes to fedora k8s configuration
This commit is contained in:
parent
5d3224d5a3
commit
148f5dba54
@ -4,16 +4,13 @@
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
tasks:
|
||||
- name: Stop and disable zram generator
|
||||
ansible.builtin.service:
|
||||
name: "swap-create@zram0"
|
||||
enabled: false
|
||||
state: stopped
|
||||
- name: Update grub config to remove zram generation
|
||||
ansible.builtin.shell:
|
||||
cmd: grubby --update-kernel ALL -args='systemd.zram=0'
|
||||
|
||||
- name: Remove zram generator defaults
|
||||
ansible.builtin.yum:
|
||||
name: "zram-generator-defaults"
|
||||
state: absent
|
||||
- name: Update grub config
|
||||
ansible.builtin.shell:
|
||||
cmd: grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
|
||||
- name: Reboot the system to get rid of the zram swap that's already been set up
|
||||
ansible.builtin.reboot:
|
||||
|
Loading…
Reference in New Issue
Block a user