*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit e3f6f8a9 authored by entlein's avatar entlein
Browse files

why doesnt it do the replacement??

parent ab7f2bb1
No related branches found
No related tags found
1 merge request!1Restore main as the default branch
......@@ -19,19 +19,20 @@
dest: kubeconfig.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 kubeconfig
delegate_to: localhost
become: false
ansible.builtin.replace:
path: kubeconfig.yaml
regexp: '^(\s+server: ).*'
replace: '\1https://{{ ansible_host }}:6443'
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: replace endpoint in external kubeconfig
delegate_to: localhost
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment