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