Test different filter on dict
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-25 22:47:17 +02:00
parent 07451b937c
commit a53b3c67b7

View File

@ -182,7 +182,7 @@
- name: Retrieve cluster dict from initial node - name: Retrieve cluster dict from initial node
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ ( hostvars.keys() | list)[0].cluster }}" msg: "{{ hostvars | dict2items }}"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
cluster: "{{ ( lookup('dict', hostvars) )[0].value.cluster }}" cluster: "{{ ( lookup('dict', hostvars) )[0].value.cluster }}"
- ansible.builtin.debug: - ansible.builtin.debug: