From bed8f81d34867c77084ee291fd824712e444703a Mon Sep 17 00:00:00 2001 From: entlein <einentlein@gmail.com> Date: Thu, 14 Jul 2022 12:09:11 +0200 Subject: [PATCH] pushing the change directly to the git repo,rather than in the submodule, maybe itll trigger it now --- roles/rke2/tasks/kubeconfig.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/roles/rke2/tasks/kubeconfig.yml b/roles/rke2/tasks/kubeconfig.yml index 82ca2e8..474e339 100644 --- a/roles/rke2/tasks/kubeconfig.yml +++ b/roles/rke2/tasks/kubeconfig.yml @@ -19,7 +19,7 @@ dest: kubeconfig.yaml flat: yes -- name: replace endpoint in kubeconfig +- name: replace endpoint in kubeconfig NEW delegate_to: localhost become: false ansible.builtin.replace: @@ -27,17 +27,17 @@ regexp: '^(\s+server: ).*' replace: '\1https://{{ lb_ip_mgmt }}:6443' -- name: fetch kubeconfig from master and copy it - ansible.builtin.fetch: - src: /etc/rancher/rke2/rke2.yaml - dest: kubeconfigext.yaml - flat: yes +#- name: fetch kubeconfig from master and copy it +# ansible.builtin.fetch: +# src: /etc/rancher/rke2/rke2.yaml +# dest: kubeconfigext.yaml +# flat: yes -- name: replace endpoint in external kubeconfig - delegate_to: localhost - become: false - ansible.builtin.replace: - path: kubeconfigext.yaml - regexp: '^(\s+server: ).*' - replace: '\1https://rancher.{{ domain }}:6443' +#- name: replace endpoint in external kubeconfig +# delegate_to: localhost +# become: false +# ansible.builtin.replace: +# path: kubeconfigext.yaml +# regexp: '^(\s+server: ).*' +# replace: '\1https://rancher.{{ domain }}:6443' -- GitLab