# Task Status at Playbook runtime

**URL:** <https://forum.ansible.com/t/task-status-at-playbook-runtime/32726>\
**Category:** Ansible Project\
**Created:** [April 18, 2020, 2:24pm UTC](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726 "2020-04-18T14:24:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Sagar](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Ashish\_Sagar](https://forum.ansible.com/u/Ashish_Sagar)\
**Post date:** [April 18, 2020, 2:24pm UTC](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726/1 "2020-04-18T14:24:40Z")

</div>

Hi Folks,

Is there anyway to get specific Task status like Changed, ignored or failed during Playbook runtime in synchronous mode ?

Thanks  
Ashish

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 18, 2020, 3:23pm UTC](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726/2 "2020-04-18T15:23:05Z")

</div>

> Hi Folks,
> 
> Is there anyway to get specific Task status like Changed, ignored or failed during Playbook runtime in synchronous mode ?
> 
> Thanks  
> Ashish

Sorry, but your question is not clear. Please elaborate and/or illustrate it with an example.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [April 18, 2020, 4:45pm UTC](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726/3 "2020-04-18T16:45:08Z")

</div>

Hi,

Register a variable for the module you call and after test this variable…

More info here :

[https://docs.ansible.com/ansible/latest/reference\_appendices/common\_return\_values.html#rc](https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#rc)

Example on a change (first link in google) :

[https://raymii.org/s/tutorials/Ansible\_-\_Only-do-something-if-another-action-changed.html](https://raymii.org/s/tutorials/Ansible_-_Only-do-something-if-another-action-changed.html)

Regards,

---

<div class="post-metadata">

**Author:** ![Ashish\_Sagar](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Ashish\_Sagar](https://forum.ansible.com/u/Ashish_Sagar)\
**Post date:** [April 18, 2020, 4:50pm UTC](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726/4 "2020-04-18T16:50:42Z")

</div>

Sure, By default, Ansible playbook executes tasks in sequence and summarize task results at last. With this approach, it shows each task status on running playbook verbose logs.

Question is, Is there anyway to get task status like failed, changed etc during playbook runtime (without parsing logs) ? I know this can be achieved in async mode but my requirement is to keep executing task in sequence.

Thanks.
