I have roles in the playbook.
---
- hosts: platform_windows
gather_facts: yes
roles:
- role: xx
- role: xx
I have a dynamic inventory of hosts. How do I get a list of failed instances?
For e.g. the one with failed=1 state
10.x.x.x : ok=37 changed=2 unreachable=0 failed=1 skipped=0 rescued=0
172.x.x.x : ok=37 changed=2 unreachable=0 failed=1 skipped=0 rescued=0
The task/playbook output should be
10.x.x.x
172.x.x.x
Also, where should I add the task/playbook