use ansible_play_hosts_all

This commit is contained in:
ace 2021-12-22 19:16:52 +03:00
parent 991298bb11
commit 4217379caf
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

View File

@ -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