diff --git a/roles/rke2/tasks/setup_host.yml b/roles/rke2/tasks/setup_host.yml index 8d11ceb3311f704405dda7bd4201cb3222536185..8bdcd7c020ca1cce835c2ed79b7a0c8ce1bfbc38 100644 --- a/roles/rke2/tasks/setup_host.yml +++ b/roles/rke2/tasks/setup_host.yml @@ -114,6 +114,7 @@ #- name: reboot (make sure SELinux is off) # shell: | # systemctl reboot -- name: Reboot a slow machine that might have lots of updates to apply +- name: Reboot but not on upgrades, so kernel updates only install at initial runs ansible.builtin.reboot: - reboot_timeout: 3600 \ No newline at end of file + reboot_timeout: 3600 + when: ( not upgrade ) \ No newline at end of file