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_method: sudo
|
||||||
become_user: root
|
become_user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: Stop and disable zram generator
|
- name: Update grub config to remove zram generation
|
||||||
ansible.builtin.service:
|
ansible.builtin.shell:
|
||||||
name: "swap-create@zram0"
|
cmd: grubby --update-kernel ALL -args='systemd.zram=0'
|
||||||
enabled: false
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
- name: Remove zram generator defaults
|
- name: Update grub config
|
||||||
ansible.builtin.yum:
|
ansible.builtin.shell:
|
||||||
name: "zram-generator-defaults"
|
cmd: grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Reboot the system to get rid of the zram swap that's already been set up
|
- name: Reboot the system to get rid of the zram swap that's already been set up
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
|
Loading…
Reference in New Issue
Block a user