Add reboot to kernel installation tasks

This commit is contained in:
Ethan Paul 2020-03-21 13:09:14 -04:00
parent dc1395daf1
commit 58431d1d78
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF

View File

@ -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: