Add reboot to kernel installation tasks
This commit is contained in:
parent
dc1395daf1
commit
58431d1d78
@ -27,6 +27,7 @@
|
|||||||
- kernel-plus
|
- kernel-plus
|
||||||
- kernel-plus-devel
|
- kernel-plus-devel
|
||||||
state: latest
|
state: latest
|
||||||
|
register: _dnf_kernel_plus
|
||||||
|
|
||||||
- name: Uninstall kernel-tools
|
- name: Uninstall kernel-tools
|
||||||
become: true
|
become: true
|
||||||
@ -44,6 +45,12 @@
|
|||||||
- kernel-plus-tools-libs
|
- kernel-plus-tools-libs
|
||||||
state: latest
|
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
|
- name: Uninstall kernel
|
||||||
become: true
|
become: true
|
||||||
dnf:
|
dnf:
|
||||||
|
Reference in New Issue
Block a user