# Register runs on skipped task

**URL:** <https://forum.ansible.com/t/register-runs-on-skipped-task/31760>\
**Category:** Ansible Project\
**Created:** [December 4, 2019, 3:31pm UTC](https://forum.ansible.com/t/register-runs-on-skipped-task/31760 "2019-12-04T15:31:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balazs\_Varga](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Balazs\_Varga](https://forum.ansible.com/u/Balazs_Varga)\
**Post date:** [December 4, 2019, 3:31pm UTC](https://forum.ansible.com/t/register-runs-on-skipped-task/31760/1 "2019-12-04T15:31:40Z")

</div>

Hello Team,

Is there any chance to disable the register command when the task was skipped?

Thanks  
Balazs

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 4, 2019, 3:36pm UTC](https://forum.ansible.com/t/register-runs-on-skipped-task/31760/2 "2019-12-04T15:36:55Z")

</div>

No. It is performed so that later you can have a when statement or similar that checks whether the result was skipped or not.

You should instead use different variable names for your register statements.
