Ya stephan , it is bad approach I know ( Infact we should avoid
ignore_errors as much as possible) ! But all tasks post this task.. can be
executed irrespective of its failure !
So i need to , can we do that ?

On Tue, 28 Jul 2020 at 12:44, Stefan Hornburg (Racke) <[email protected]>
wrote:

> On 7/28/20 9:01 AM, Rahul Kumar wrote:
> > Hi Ansible Gurus,
> > I have a playbook like below:
> > - name: Get Active Rest server
> >       include_role:
> >         name:  web-server
> >         tasks_from: active-rest-server
> >
> > Now I have a playbook under the web-server role named
> active-rest-server.yml !
> > So in case active-rest-server fails , can i use ignor_errors in above
> snippet as well or i have to use it in that task
> > only ?
> >   - name: Get Active Rest server
> >       include_role:
> >         name:  web-server
> >         tasks_from: active-rest-server
> >      ignore_errors: True
> >
> > is that ok to do in case i want to ignore errors?
>
> So why do you want to ignore errors? That seems like a bad approach to me.
>
> Regards
>         Racke
>
> >
> > Rahul
> >
> > --
> > 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] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEw6Qz9J-%2BswD9qL1qUjXQLwXgSCJU6vPwxBaYTXydFPnA%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEw6Qz9J-%2BswD9qL1qUjXQLwXgSCJU6vPwxBaYTXydFPnA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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/ed7a2785-4d5a-8561-2a66-0401c499e48e%40linuxia.de
> .
>

-- 
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/CAGH8rEyExCyo_vZaEMm%2B9y9fjSqHOwehbigDELQLKXAqXi3Gaw%40mail.gmail.com.

Reply via email to