kvm: regenerate GRUB config after modification

When we add the config removing the CPU mitigations then we want to
regenerate our GRUB config
master
Devan Carpenter 2 years ago
parent be374bb0ae
commit 627f79ff8d
Signed by: dvn
GPG Key ID: E1707CFFD7B85A02

@ -87,6 +87,11 @@
src: grub-mitigations.conf
dest: /etc/sysconfig/grub
mode: 0644
register: grub-mitigations
when: intel_check.stdout != "0"
- name: Regenerate grub's config file
shell: grub-mkconfig
notify:
- reboot
when: intel_check.stdout != "0"
when: grub-mitigations.changed

Loading…
Cancel
Save