# Register variables

**URL:** <https://forum.ansible.com/t/register-variables/11833>\
**Category:** Ansible Project\
**Created:** [August 27, 2012, 6:52pm UTC](https://forum.ansible.com/t/register-variables/11833 "2012-08-27T18:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yerrysherry](https://avatars.discourse-cdn.com/v4/letter/y/b5e925/32.png) [@yerrysherry](https://forum.ansible.com/u/yerrysherry)\
**Post date:** [August 27, 2012, 6:52pm UTC](https://forum.ansible.com/t/register-variables/11833/1 "2012-08-27T18:52:08Z")

</div>

Hi,

Suppose, this ex.:

# cat zabbix.yml

---

<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:** [August 27, 2012, 7:05pm UTC](https://forum.ansible.com/t/register-variables/11833/2 "2012-08-27T19:05:31Z")

</div>

> Hi,

Your command returned a non-zero return code.

Use this with:

ignore\_errors: True

or otherwise fix the statement by using the shell module with & /bin/true.

(It very well could be that the command must succeed to use register variables, I don’t recall)
