This commit is contained in:
parent
78252ec7af
commit
80d348b572
@ -188,12 +188,11 @@
|
|||||||
ansible.builtin.tempfile:
|
ansible.builtin.tempfile:
|
||||||
state: file
|
state: file
|
||||||
register: kubeconfig
|
register: kubeconfig
|
||||||
- ansible.builtin.debug:
|
|
||||||
msg: "{{ lookup('dict', hostvars) }}"
|
|
||||||
- name: Store kubeconfig in tempfile
|
- name: Store kubeconfig in tempfile
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: "{{ kubeconfig.path }}"
|
dest: "{{ kubeconfig.path }}"
|
||||||
content: "{{ ( lookup('dict', hostvars) )[0].value.cluster.kubeconfig }}"
|
content: "{{ ( lookup('dict', hostvars) ).value.cluster.kubeconfig }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
- name: Replace API url
|
- name: Replace API url
|
||||||
|
Loading…
Reference in New Issue
Block a user