Skip to content

Commit

Permalink
escaping $ and () in search regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckySB committed Jan 26, 2019
1 parent b61777a commit 0888f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/win_nodes/kubernetes_patch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
args:
chdir: "{{ kubernetes_user_manifests_path }}"
register: patch_kube_proxy_command
when: not current_kube_proxy_command.stdout is search("--hostname-override=$(NODE_NAME)")
when: not current_kube_proxy_command.stdout is search("--hostname-override=\$\(NODE_NAME\)")

- debug: msg={{ patch_kube_proxy_command.stdout_lines }}
when: patch_kube_proxy_command is not skipped
Expand Down

0 comments on commit 0888f65

Please sign in to comment.