From 160e8a01ff33eb1c05015324850fd7163a4c6bd3 Mon Sep 17 00:00:00 2001
From: Laszlo Rafael <rlacko99@gmail.com>
Date: Sun, 21 Aug 2022 21:30:58 +0200
Subject: [PATCH] Fix kernel upgrade when

---
 ansible/k8s/tasks/upgrade_kernel.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ansible/k8s/tasks/upgrade_kernel.yaml b/ansible/k8s/tasks/upgrade_kernel.yaml
index 2ef1ce7..b370c7b 100644
--- a/ansible/k8s/tasks/upgrade_kernel.yaml
+++ b/ansible/k8s/tasks/upgrade_kernel.yaml
@@ -21,5 +21,4 @@
   with_items: "{{ groups[rke2_cluster_group_name] }}"
   loop_control:
     loop_var: _host_item
-  when: hostvars[_host_item].inventory_hostname == inventory_hostname
-  # when: (hostvars[_host_item].inventory_hostname == inventory_hostname ) and reboot_required_file.stat.exists)
+  when: (hostvars[_host_item].inventory_hostname == inventory_hostname ) and reboot_required_file.stat.exists)
-- 
GitLab