Replace regexp group references w/ hardcoded strings
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
5a0f0732aa
commit
5656e00e5b
@ -195,9 +195,8 @@
|
||||
- name: Replace API url
|
||||
ansible.builtin.replace:
|
||||
path: "{{ kubeconfig.path }}"
|
||||
regexp: '(server: https:\/\/)127\.0\.0\.1(:6443)$'
|
||||
replace: >-
|
||||
\1"{{ cluster.virtualip | ansible.utils.ipaddr('address') }}"\2
|
||||
regexp: 'server: https:\/\/127\.0\.0\.1:6443$'
|
||||
replace: "server: https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443"
|
||||
- ansible.builtin.slurp:
|
||||
src: "{{ kubeconfig.path }}"
|
||||
register: foo
|
||||
|
Loading…
Reference in New Issue
Block a user