Escape characters in replace pattern
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
c02a164bb9
commit
c1d5ce7682
@ -196,7 +196,7 @@
|
|||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: "{{ kubeconfig.path }}"
|
path: "{{ kubeconfig.path }}"
|
||||||
regexp: '(server:)127\.0\.0\.1(:6443)$'
|
regexp: '(server:)127\.0\.0\.1(:6443)$'
|
||||||
replace: "\1{{ cluster.virtualip | ansible.utils.netaddr('ipaddr') }}\2"
|
replace: "\\1{{ cluster.virtualip | ansible.utils.netaddr('ipaddr') }}\\2"
|
||||||
- ansible.builtin.slurp:
|
- ansible.builtin.slurp:
|
||||||
src: "{{ kubeconfig.path }}"
|
src: "{{ kubeconfig.path }}"
|
||||||
register: foo
|
register: foo
|
||||||
|
Loading…
Reference in New Issue
Block a user