2019-11-03 23:22:18 +00:00
|
|
|
---
|
|
|
|
- name: Reload kernel configuration
|
|
|
|
command: "sysctl --system"
|
|
|
|
listen: __kernel_reload
|
|
|
|
become: True
|
|
|
|
become_user: root
|
2022-03-20 21:03:26 +00:00
|
|
|
|
2022-03-21 07:59:10 +00:00
|
|
|
- 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
|
|
|
|
|
2022-03-20 21:08:44 +00:00
|
|
|
- name: Reboot server
|
2022-03-20 21:03:26 +00:00
|
|
|
reboot:
|
|
|
|
reboot_timeout: 600
|
|
|
|
listen: __kernel_server_restart
|
|
|
|
become: True
|
|
|
|
become_user: root
|