Debug dict keys
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-25 22:30:09 +02:00
parent 9df55a5892
commit 5c8adab6cb

View File

@ -181,8 +181,12 @@
tasks: tasks:
- name: Retrieve cluster dict from initial node - name: Retrieve cluster dict from initial node
ansible.builtin.set_fact: ansible.builtin.debug:
cluster: "{{ ( lookup('dict', hostvars) )[0].cluster }}" msg: "{{ ( hostvars.keys() )[0].cluster }}"
- ansible.builtin.set_fact:
cluster: "{{ ( lookup('dict', hostvars) )[0].value.cluster }}"
- ansible.builtin.debug:
var: cluster
- name: Add Helm chart repositories - name: Add Helm chart repositories
kubernetes.core.helm_repository: kubernetes.core.helm_repository: