diff --git a/roles/win_nodes/kubernetes_patch/tasks/main.yml b/roles/win_nodes/kubernetes_patch/tasks/main.yml
index 4430b513bae8d88ed654d93fee3bf7daeef2775d..98af1c5a901e4b59fb90a4fe63b66e501ffd208f 100644
--- a/roles/win_nodes/kubernetes_patch/tasks/main.yml
+++ b/roles/win_nodes/kubernetes_patch/tasks/main.yml
@@ -16,15 +16,21 @@
 
     # Due to https://github.com/kubernetes/kubernetes/issues/58212 we cannot rely on exit code for "kubectl patch"
     - name: Check current nodeselector for kube-proxy daemonset
-      shell: "{{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf get ds kube-proxy --namespace=kube-system -o jsonpath='{.spec.template.spec.nodeSelector.beta.kubernetes.io/os}'"
+      command: >-
+        {{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf
+        get ds kube-proxy --namespace=kube-system
+        -o jsonpath='{.spec.template.spec.nodeSelector.beta\.kubernetes\.io/os}'
       register: current_kube_proxy_state
       retries: 60
       delay: 5
       until: current_kube_proxy_state is succeeded
-
+      changed_when: false
 
     - name: Apply nodeselector patch for kube-proxy daemonset
-      shell: "{{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf patch ds kube-proxy --namespace=kube-system --type=strategic -p \"$(cat nodeselector-os-linux-patch.json)\""
+      shell: >-
+        {{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf
+        patch ds kube-proxy --namespace=kube-system --type=strategic -p
+        "$(cat nodeselector-os-linux-patch.json)"
       args:
         chdir: "{{ kubernetes_user_manifests_path }}"
       register: patch_kube_proxy_state