ansible ignore_errors: yes

50 views
Skip to first unread message

Karther

unread,
Jan 14, 2020, 11:30:49 AM1/14/20
to Ansible Project
Hey community Ansible !! :)


I would like to know if possible there is a parameter same ignore_errors but not display on screen message error in red ...

The problem with ignore_errors: yes   is that when there is one error in this task, the message error is display in red ...

Can you help me please !!! ^_^

Thanks you very much community Ansible !! :)

Best regards,

Karther

Vladimir Botka

unread,
Jan 14, 2020, 11:57:59 AM1/14/20
to Karther, ansible...@googlegroups.com
On Tue, 14 Jan 2020 08:30:49 -0800 (PST)
Karther <ryadmo...@gmail.com> wrote:

> I would like to know if possible there is a parameter same ignore_errors
> but not display on screen message error in red ...

Use 'rescue' section. See "Blocks error handling"
https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html#blocks-error-handling

It's possible to 'clear_host_errors' and 'end host' gracefully. See "meta"
https://docs.ansible.com/ansible/latest/modules/meta_module.html#meta-execute-ansible-actions

HTH

-vlado

alicia

unread,
Jan 14, 2020, 3:01:56 PM1/14/20
to ansible...@googlegroups.com, Karther
For more information on controlling what Ansible sees as a failure and how it responds, see 


Hope this helps,
Alicia

On Jan 14, 2020, at 10:57 AM, Vladimir Botka <vbo...@gmail.com> wrote:

On Tue, 14 Jan 2020 08:30:49 -0800 (PST)
Karther <ryadmo...@gmail.com> wrote:

I would like to know if possible there is a parameter same ignore_errors
but not display on screen message error in red …

Use 'rescue' section. See "Blocks error handling"
https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html#blocks-error-handling

It's possible to 'clear_host_errors' and 'end host' gracefully. See "meta"
https://docs.ansible.com/ansible/latest/modules/meta_module.html#meta-execute-ansible-actions

HTH

-vlado

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20200114175744.0fa9ea83%40gmail.com.

Reply all
Reply to author
Forward
0 new messages