Ansible Tower contains some very nice logging of job history you may be
interested in:

http://www.ansible.com/tower

This is probably the easiest way to go because you don't have to build it
yourself, but there's still a searchable REST API to access everything.




On Wed, Jun 4, 2014 at 5:20 PM, Paul Durivage <[email protected]>
wrote:

> 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 <[email protected]
> > 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAK6JQEGizrLhuGt01mW0Oy53mXgxkPpGjOfzx809LvhpPEFBXQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAK6JQEGizrLhuGt01mW0Oy53mXgxkPpGjOfzx809LvhpPEFBXQ%40mail.gmail.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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwR-uAqOa6CTDNawVCm4NPuZ01zDaDs%2BUkvVNya8SE3WQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to