community.general/lib/ansible
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
..
cli add keywords handling to ansible-doc 2018-05-23 14:09:02 -04:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config HTTP(S) API connection plugin (#39224) 2018-05-17 18:47:15 -04:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor use correct object in error 2018-05-22 11:10:57 -04:00
galaxy Allow the galaxy client to fetch from a url in role version data (#39396) 2018-04-30 15:47:43 -05:00
inventory Don't display host pattern warning for empty groups (fixes #35255) (#39927) 2018-05-09 14:13:48 -05:00
module_utils Rename letsencrypt module utils / document fragment to acme. (#40697) 2018-05-25 09:08:14 +02:00
modules Add a 'machinectl shell' become_method (#39826) 2018-05-25 10:52:53 -05:00
parsing fix decrypted vault utf8 values (#37539) 2018-05-24 23:22:46 -04:00
playbook Add a 'machinectl shell' become_method (#39826) 2018-05-25 10:52:53 -05:00
plugins Add start and end timestamp to task and play result in json callback (#39277) 2018-05-25 11:19:14 -05:00
template Fix when template paths contain non-ascii chars and using the path in ansible_managed 2018-04-30 16:47:27 -07:00
utils Rename letsencrypt module utils / document fragment to acme. (#40697) 2018-05-25 09:08:14 +02:00
vars minimize loading files/plugins 2018-04-10 17:22:31 -04:00
__init__.py
constants.py Add a 'machinectl shell' become_method (#39826) 2018-05-25 10:52:53 -05:00
release.py Update Ansible release version to 2.6.0dev0. 2018-05-21 19:29:14 -07:00