Test different filter on dict
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
07451b937c
commit
a53b3c67b7
@ -182,7 +182,7 @@
|
||||
|
||||
- name: Retrieve cluster dict from initial node
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ ( hostvars.keys() | list)[0].cluster }}"
|
||||
msg: "{{ hostvars | dict2items }}"
|
||||
- ansible.builtin.set_fact:
|
||||
cluster: "{{ ( lookup('dict', hostvars) )[0].value.cluster }}"
|
||||
- ansible.builtin.debug:
|
||||
|
Loading…
Reference in New Issue
Block a user