Add reboot to kernel installation tasks
This commit is contained in:
parent
dc1395daf1
commit
58431d1d78
@ -27,6 +27,7 @@
|
||||
- kernel-plus
|
||||
- kernel-plus-devel
|
||||
state: latest
|
||||
register: _dnf_kernel_plus
|
||||
|
||||
- name: Uninstall kernel-tools
|
||||
become: true
|
||||
@ -44,6 +45,12 @@
|
||||
- kernel-plus-tools-libs
|
||||
state: latest
|
||||
|
||||
- name: Reboot into new kernel
|
||||
become: true
|
||||
when: _dnf_kernel_plus.changed is true and "centos.plus" not in ansible_kernel
|
||||
reboot:
|
||||
reboot_timeout: 3600
|
||||
|
||||
- name: Uninstall kernel
|
||||
become: true
|
||||
dnf:
|
||||
|
Reference in New Issue
Block a user