From be4734df98a80a5bdf76e4e55ebae422225353db Mon Sep 17 00:00:00 2001 From: entlein <einentlein@gmail.com> Date: Thu, 4 Aug 2022 15:59:00 +0200 Subject: [PATCH] safety flag added to not reboot with ingress --- roles/rke2/tasks/setup_host.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/rke2/tasks/setup_host.yml b/roles/rke2/tasks/setup_host.yml index 8d11ceb..8bdcd7c 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 -- GitLab