mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-07-28 10:24:51 +00:00
json[l] callback: add play/task path info
Add the play and task path info (i.e., filename and line number) to the JSON that is emitted from the json and jsonl callback plugins, allowing more accurate post-mortem analysis. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
This commit is contained in:
@@ -67,6 +67,7 @@ class CallbackModule(CallbackBase):
|
||||
'play': {
|
||||
'name': play.get_name(),
|
||||
'id': to_text(play._uuid),
|
||||
'path': to_text(play.get_path()),
|
||||
'duration': {
|
||||
'start': current_time()
|
||||
}
|
||||
@@ -79,6 +80,7 @@ class CallbackModule(CallbackBase):
|
||||
'task': {
|
||||
'name': task.get_name(),
|
||||
'id': to_text(task._uuid),
|
||||
'path': to_text(task.get_path()),
|
||||
'duration': {
|
||||
'start': current_time()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user