From a53b3c67b796651c1074d4a0d4bebccfe72a175a Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 25 Apr 2022 22:47:17 +0200 Subject: [PATCH] Test different filter on dict --- playbook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: