Robert Kaussow
2181685e50
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
482 B
YAML
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
|