Re: [ansible-project] Get list of failed instances

2022-07-20 Thread Vinita Shah
This helped. Thank you so much. Much appreciated. On Monday, July 18, 2022 at 11:54:25 PM UTC-7 vbo...@gmail.com wrote: > On Mon, 18 Jul 2022 22:39:49 -0700 (PDT) > Vinita Shah wrote: > > > I have a dynamic inventory of hosts. *How do I get a list of failed > > instances?* > > For example, > >

Re: [ansible-project] Get list of failed instances

2022-07-19 Thread Vinita Deepak Shah
Thank you. I tried adding debug after the roles. : "{{ ansible_play_hosts_all| difference(ansible_play_hosts) }}" But it lists out the wrong instances. Not sure if it’s coz of the dynamic inventory. On Tue, Jul 19, 2022 at 12:54 AM Vladimir Botka wrote: > On Mon, 18 Jul 20

Re: [ansible-project] Get list of failed instances

2022-07-18 Thread Vladimir Botka
On Mon, 18 Jul 2022 22:39:49 -0700 (PDT) Vinita Shah wrote: > I have a dynamic inventory of hosts. *How do I get a list of failed > instances?* For example, _failed: "{{ ansible_play_hosts_all| difference(ansible_play_hosts) }}" See https://docs.ansible.com/ansible/latest

[ansible-project] Get list of failed instances

2022-07-18 Thread Vinita Shah
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 skip