diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-01 18:09:00 +0000 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-01 18:09:00 +0000 |
commit | 79d8b2e65639879321879c87781e6ea2d14253bc (patch) | |
tree | a2dc7eba796cbe63268d2ff4121b9d4f8668c6cc /callback_plugins | |
parent | ad4a9c04b9ea0939063827ff196c9f1af30e4b44 (diff) | |
download | ansible-79d8b2e65639879321879c87781e6ea2d14253bc.tar.gz ansible-79d8b2e65639879321879c87781e6ea2d14253bc.tar.xz ansible-79d8b2e65639879321879c87781e6ea2d14253bc.zip |
add a playbook_start and end var to the pb info
Diffstat (limited to 'callback_plugins')
-rw-r--r-- | callback_plugins/logdetail.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py index be5d231b4..f50c55197 100644 --- a/callback_plugins/logdetail.py +++ b/callback_plugins/logdetail.py @@ -242,6 +242,7 @@ class CallbackModule(object): # write out playbook info now if not self._play_count: pb_info = {} + pb_info['playbook_start'] = time.time() pb_info['playbook'] = path pb_info['userid'] = os.getlogin() pb_info['extra_vars'] = play.playbook.extra_vars @@ -266,6 +267,7 @@ class CallbackModule(object): results[host] = stats.summarize(host) logmech.log(host, 'STATS', results[host]) logmech.play_log(json.dumps({'stats': results}, indent=4)) + logmech.play_log(json.dumps({'playbook_end': time.time()}, indent=4)) print 'logs written to: %s' % logmech.logpath_play |