Ansible-pull fail tasks notifications ?

176 views
Skip to first unread message

Nicolas G

unread,
Oct 30, 2014, 8:08:05 AM10/30/14
to ansible...@googlegroups.com
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.

Matt Martz

unread,
Oct 30, 2014, 8:17:04 AM10/30/14
to ansible...@googlegroups.com
You should look into using a callback plugin.  There are a few examples at:


Also see:

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/47f75158-2456-40e9-8593-c6bce69e7d57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Michael DeHaan

unread,
Oct 30, 2014, 4:50:48 PM10/30/14
to ansible...@googlegroups.com
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.


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 :)



Reply all
Reply to author
Forward
0 new messages