ansible ignore_errors: yes

Hey community Ansible !! :slight_smile:

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 !!! :slight_smile:

Thanks you very much community Ansible !! :slight_smile:

Best regards,

Karther

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

For more information on controlling what Ansible sees as a failure and how it responds, see

https://docs.ansible.com/ansible/devel/user_guide/playbooks_error_handling.html

Hope this helps,
Alicia