# Ansible-pull fail tasks notifications ?

**URL:** <https://forum.ansible.com/t/ansible-pull-fail-tasks-notifications/16644>\
**Category:** Ansible Project\
**Created:** [October 30, 2014, 12:08pm UTC](https://forum.ansible.com/t/ansible-pull-fail-tasks-notifications/16644 "2014-10-30T12:08:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_G](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Post date:** [October 30, 2014, 12:08pm UTC](https://forum.ansible.com/t/ansible-pull-fail-tasks-notifications/16644/1 "2014-10-30T12:08:05Z")

</div>

Hi,

One of the benefits of running Ansible in push mode is that you can see exactly when and what task have failed. I’m planning to use ansible in pull mode and I would like to know when a task have failed in pull mode by getting a notification.

Is that possible ?

Regards,  
N.

---

<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:** [October 30, 2014, 12:16pm UTC](https://forum.ansible.com/t/ansible-pull-fail-tasks-notifications/16644/2 "2014-10-30T12:16:59Z")

</div>

You should look into using a callback plugin. There are a few examples at:

[https://github.com/ansible/ansible/tree/devel/plugins/callbacks](https://github.com/ansible/ansible/tree/devel/plugins/callbacks)

Also see:

[http://docs.ansible.com/developing\_plugins.html#callbacks](http://docs.ansible.com/developing_plugins.html#callbacks)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 30, 2014, 8:50pm UTC](https://forum.ansible.com/t/ansible-pull-fail-tasks-notifications/16644/3 "2014-10-30T20:50:45Z")

</div>

Perhaps a better way would be to simplify your architecture.

Ansible tower has “provisioning callbacks”, which allow a node to phone out, say “go configure me now” and there are full details available via the GUI and REST API.

[http://www.ansible.com/tower](http://www.ansible.com/tower)

This is a node raising it’s hand, so more like “pull-to-push”, though we are considering some nice integrations that would allow pure pull mode invocations in the future.

Ansible triggering ansible-pull is also a valid use case 🙂
