From 3b114bb3e6cb95787540a3391b04dcf8e1d61f16 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Tue, 26 Apr 2022 12:59:10 +0200 Subject: [PATCH] Add missing string in pattern --- playbook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbook.yml b/playbook.yml index 6e64d6b..e2b06a6 100644 --- a/playbook.yml +++ b/playbook.yml @@ -195,9 +195,9 @@ - name: Replace API url ansible.builtin.replace: path: "{{ kubeconfig.path }}" - regexp: '(server:)127\.0\.0\.1(:6443)$' + regexp: '(server: https:\/\/)127\.0\.0\.1(:6443)$' replace: >- - \1'{{ cluster.virtualip | ansible.utils.ipaddr('address') }}'\2 + \1'{{ cluster.virtualip | ansible.utils.ipaddr(''address'') }}'\2 - ansible.builtin.slurp: src: "{{ kubeconfig.path }}" register: foo