Remove list index
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-04-29 16:09:17 +02:00
parent 78252ec7af
commit 80d348b572
1 changed files with 2 additions and 3 deletions

View File

@ -188,12 +188,11 @@
ansible.builtin.tempfile:
state: file
register: kubeconfig
- ansible.builtin.debug:
msg: "{{ lookup('dict', hostvars) }}"
- name: Store kubeconfig in tempfile
ansible.builtin.copy:
dest: "{{ kubeconfig.path }}"
content: "{{ ( lookup('dict', hostvars) )[0].value.cluster.kubeconfig }}"
content: "{{ ( lookup('dict', hostvars) ).value.cluster.kubeconfig }}"
mode: 0600
- name: Replace API url