Replace regexp group references w/ hardcoded strings
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-26 13:31:43 +02:00
parent 5a0f0732aa
commit 5656e00e5b

View File

@ -195,9 +195,8 @@
- name: Replace API url - name: Replace API url
ansible.builtin.replace: ansible.builtin.replace:
path: "{{ kubeconfig.path }}" path: "{{ kubeconfig.path }}"
regexp: '(server: https:\/\/)127\.0\.0\.1(:6443)$' regexp: 'server: https:\/\/127\.0\.0\.1:6443$'
replace: >- replace: "server: https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443"
\1"{{ cluster.virtualip | ansible.utils.ipaddr('address') }}"\2
- ansible.builtin.slurp: - ansible.builtin.slurp:
src: "{{ kubeconfig.path }}" src: "{{ kubeconfig.path }}"
register: foo register: foo