diff --git a/playbook.yml b/playbook.yml index 1134465..1712bef 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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: