Add conversion through filter
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
5c8adab6cb
commit
07451b937c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user