xoxys.kernel/handlers/main.yml
Robert Kaussow 2181685e50
All checks were successful
continuous-integration/drone/push Build is passing
fix: ensure grub config rgeneration after grubby changes
2022-03-21 08:59:10 +01:00

23 lines
482 B
YAML

---
- name: Reload kernel configuration
command: "sysctl --system"
listen: __kernel_reload
become: True
become_user: root
- name: Rebuild grub config
command: "{{ item }}"
listen: __kernel_grub_rebuild
loop:
- grub2-mkconfig -o /boot/grub2/grub.cfg
- grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg
become: True
become_user: root
- name: Reboot server
reboot:
reboot_timeout: 600
listen: __kernel_server_restart
become: True
become_user: root