Add missing string in pattern
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-26 12:59:10 +02:00
parent 7b6e759a73
commit 3b114bb3e6
1 changed files with 2 additions and 2 deletions

View File

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