Add conversion through filter
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-25 22:40:49 +02:00
parent 5c8adab6cb
commit 07451b937c
1 changed files with 1 additions and 1 deletions

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: