# Adding "Quite" mode to ignore\_errors

**URL:** <https://forum.ansible.com/t/adding-quite-mode-to-ignore-errors/11984>\
**Category:** Ansible Project\
**Created:** [October 16, 2012, 6:38am UTC](https://forum.ansible.com/t/adding-quite-mode-to-ignore-errors/11984 "2012-10-16T06:38:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Shulov](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gregory_shulov/32/4135_2.png) [@Gregory\_Shulov](https://forum.ansible.com/u/Gregory_Shulov)\
**Post date:** [October 16, 2012, 6:38am UTC](https://forum.ansible.com/t/adding-quite-mode-to-ignore-errors/11984/1 "2012-10-16T06:38:43Z")

</div>

Hi All,

I am writing the playbook that involves installing rpms without yum. Since I want to istall rpms without dependances, I am using the following trick to make it work:

- name: “Check if foo package is installed”  
action: shell /bin/rpm -q --quiet foo ; echo $?  
register: foo\_installed

- name: “Install foo package”  
action: shell /usr/bin/yumdownloader --destdir=/tmp foo && /bin/rpm --nodeps -Uv /tmp/foo\*.rpm  
only\_if: “${foo\_installed.stdout} != 0”

Of course I can use “ignore\_errors: True” and check for foo\_installed.rc, but in this case I will get the “Red Error Message” which is confusing.  
I am expecting “Check if foo package is installed” task to fail at least during initial run and only need foo\_installed.rc for the “next” task.

What do you think about adding “ignore\_errors: Quite” that will behave as follows:

if return code is zero - always show task as “o.k”  
if return code is not zero - show task as modified and hide output error.  
register: foo - will be used to determine the output and return code as regular.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 16, 2012, 11:55am UTC](https://forum.ansible.com/t/adding-quite-mode-to-ignore-errors/11984/2 "2012-10-16T11:55:58Z")

</div>

Well, I'm pretty sure it's "quiet" 🙂

But I'm not really interested in that.

I do think the message should only be yellow and say "error hit,  
ignoring...", which is what I thought it did.

Patches for that would be accepted.
