You could use the ec2.py dynamic inventory to at least target the instances that are powered on. It's more elegant than ignoring errors etc
On Fri, 8 May 2020 at 17:45, Work-Hard <[email protected]> wrote: > Brian if I remove ignore_unreachable=true. The playbook halts to continue > the playbook. > > > > > On Friday, May 8, 2020 at 7:47:19 AM UTC-7, Brian Coca wrote: >> >> if you want to stop that ... dont use ignore_unreachable=true, the >> 'default' behaviour is to remove the host from play and not try >> executing subsequent tasks (that of course fail again). >> >> >> -- >> ---------- >> Brian Coca >> >> -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/cabf81b2-0451-417e-b108-df53a91f3dff%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/cabf81b2-0451-417e-b108-df53a91f3dff%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwMpd%2B708KFB85eO2xvJz65yeGR4TttHb8XaRZOp_mVo%2Bg%40mail.gmail.com.
