Special Variables — Ansible Documentation
docs.ansible.com › ansible › latestPlease refer to ansible_parent_role_names for the order of items in this list. ansible_play_batch. List of active hosts in the current play run limited by the serial, aka ‘batch’. Failed/Unreachable hosts are not considered ‘active’. ansible_play_hosts. List of hosts in the current play run, not limited by the serial.