From 4217379caf7b80baa3b353f56455af5c716bfbc3 Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 22 Dec 2021 19:16:52 +0300 Subject: [PATCH] use ansible_play_hosts_all --- tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index eb26512..d6e3240 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -9,7 +9,7 @@ when: - hostvars[item].ansible_host is defined - pin_hosts - with_items: "{{ groups.all }}" + with_items: "{{ ansible_play_hosts_all }}" tags: - hosts