xoxys.kernel/handlers/main.yml

23 lines
482 B
YAML
Raw Normal View History

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
- 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
2022-03-20 21:03:26 +00:00
reboot:
reboot_timeout: 600
listen: __kernel_server_restart
become: True
become_user: root