Hi Craig,

I think what you're looking for is callback plugins, but you could probably
also use a notification module as well.  There are several in Github as
examples.  The callback plugin could, for example, record something to a
file, or to a database, or merely make an API call to some custom
application that records the information you're looking for.

http://docs.ansible.com/developing_plugins.html#callbacks




On Wed, Jun 4, 2014 at 4:42 AM, Craig Marvelley <craig.marvel...@gmail.com>
wrote:

> Hi all,
>
> I was wondering if anyone has a strategy for recording when a playbook has
> been run against hosts in an inventory, and crucially which version of the
> repository (Git-based, in my case) was checked out when the playbook ran?
> Essentially I'd like to maintain a 'version number' for each instance that
> indicates when they were last provisioned.
>
> Cheers!
> Craig
>
> --
> 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-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9c88c9e3-7bab-450e-a22d-7786f383847a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9c88c9e3-7bab-450e-a22d-7786f383847a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK6JQEGizrLhuGt01mW0Oy53mXgxkPpGjOfzx809LvhpPEFBXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to