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:
- name: Retrieve cluster dict from initial node
ansible.builtin.set_fact:
cluster: "{{ ( lookup('dict', hostvars) )[0].cluster }}"
ansible.builtin.debug:
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
kubernetes.core.helm_repository: