I have a task in my playbook where it runs against multiple servers.
I need to get the hostname of all servers where my task failed and append it to a variable as a list.
Please assist how to get this.
If you are running in ansible engine it will automatically create a file as yourplayboonname.retry in same folder