diff --git a/ansible/k8s/tasks/upgrade_kernel.yaml b/ansible/k8s/tasks/upgrade_kernel.yaml index b370c7b7b0c7b61e601f583d77d8eafd5e5624ac..6804f550e6612e5e2352df04d74205a5f90b29fb 100644 --- a/ansible/k8s/tasks/upgrade_kernel.yaml +++ b/ansible/k8s/tasks/upgrade_kernel.yaml @@ -21,4 +21,4 @@ with_items: "{{ groups[rke2_cluster_group_name] }}" loop_control: loop_var: _host_item - 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)