diff --git a/tasks/centos-8-kernelplus.yml b/tasks/centos-8-kernelplus.yml index a358a0c..ef67138 100644 --- a/tasks/centos-8-kernelplus.yml +++ b/tasks/centos-8-kernelplus.yml @@ -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: