community.general/lib/ansible/plugins/callback
Felix Schmidt b7b19d139e Add start and end timestamp to task and play result in json callback (#39277)
* Add start and end timestamp to task result in json callback

Currently, the timestamp information is only provided directly by a few
Ansible modules (e.g. the command module, which shows the runtime of a
command per host result).
This change adds an 'overall' time information to all executed tasks. The
delta between both timestamps shows how long it took a task to finish
across all hosts/nodes.

This patch is also proposed for zuul and can be found here:
https://review.openstack.org/#/c/563888

* Add missing timezone information to 'start' and 'end' timestamps

As the datetime.isoformat() function is missing the timezone information,
we assume it's local time.

* Nest 'start' and 'end' timestamps in 'duration' field.

To clarify the purpose of those fields.

* Add 'start' and 'end' timestamps also for plays
2018-05-25 11:19:14 -05:00
..
__init__.py Fix callback._dump_results to dump vaulted data v2 (#39975) 2018-05-11 07:44:29 +02:00
actionable.py Fix task banner with 'actionable' callback when using templates in name (#38165) 2018-05-09 13:57:28 -04:00
cgroup_memory_recap.py Add cgroup_memory_recap callback plugin used to profile memory (#38675) 2018-04-23 14:54:36 -05:00
context_demo.py
debug.py
default.py
dense.py
foreman.py foreman: Fix get_option regression (#40534) 2018-05-22 15:40:51 -05:00
full_skip.py
grafana_annotations.py Fix grafana CALLBACK_VERSION 2018-04-04 11:26:22 -04:00
hipchat.py
jabber.py
json.py Add start and end timestamp to task and play result in json callback (#39277) 2018-05-25 11:19:14 -05:00
junit.py Allow non-inclusion of setup task in junit report 2018-05-02 00:00:36 -07:00
log_plays.py
logentries.py
logstash.py
mail.py mail callback: Exception info less important 2018-04-30 21:45:10 -04:00
minimal.py
null.py Add plugins to ansible-doc test and fix issues. 2018-05-23 13:10:09 -07:00
oneline.py show changed in online 2018-04-10 17:25:24 -04:00
osx_say.py
profile_roles.py Convert more http links to https. 2018-04-25 23:12:46 -07:00
profile_tasks.py Convert more http links to https. 2018-04-25 23:12:46 -07:00
selective.py
skippy.py
slack.py Fix typo in Slack Callback plugin (#38268) 2018-04-04 15:29:49 +02:00
stderr.py
sumologic.py Fix broken yaml (#38966) 2018-04-18 20:54:14 +01:00
syslog_json.py
timer.py
tree.py Update tree.py 2018-04-19 15:51:06 -04:00
unixy.py
yaml.py Allow Unicode chars to be dumped by yaml stdout callback (#40188) 2018-05-15 15:23:13 -07:00