Add conversion through filter
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-25 22:40:49 +02:00
parent 5c8adab6cb
commit 07451b937c

View File

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