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