mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Compare commits
5 commits
3a5ba91d92
...
da1713ed3e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da1713ed3e | ||
|
|
7fb9cc95c3 | ||
|
|
940d914904 | ||
|
|
7d069b597f | ||
|
|
009ed3bed5 |
5 changed files with 10 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- fix profile_tasks callback documentation by using correct markup
|
||||||
2
changelogs/fragments/440-json-add-path-field.yaml
Normal file
2
changelogs/fragments/440-json-add-path-field.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- json and jsonl - Add the ``path`` attribute into the play and task output
|
||||||
|
|
@ -67,6 +67,7 @@ class CallbackModule(CallbackBase):
|
||||||
'play': {
|
'play': {
|
||||||
'name': play.get_name(),
|
'name': play.get_name(),
|
||||||
'id': to_text(play._uuid),
|
'id': to_text(play._uuid),
|
||||||
|
'path': to_text(play.get_path()),
|
||||||
'duration': {
|
'duration': {
|
||||||
'start': current_time()
|
'start': current_time()
|
||||||
}
|
}
|
||||||
|
|
@ -79,6 +80,7 @@ class CallbackModule(CallbackBase):
|
||||||
'task': {
|
'task': {
|
||||||
'name': task.get_name(),
|
'name': task.get_name(),
|
||||||
'id': to_text(task._uuid),
|
'id': to_text(task._uuid),
|
||||||
|
'path': to_text(task.get_path()),
|
||||||
'duration': {
|
'duration': {
|
||||||
'start': current_time()
|
'start': current_time()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ class CallbackModule(CallbackBase):
|
||||||
'play': {
|
'play': {
|
||||||
'name': play.get_name(),
|
'name': play.get_name(),
|
||||||
'id': to_text(play._uuid),
|
'id': to_text(play._uuid),
|
||||||
|
'path': to_text(play.get_path()),
|
||||||
'duration': {
|
'duration': {
|
||||||
'start': current_time()
|
'start': current_time()
|
||||||
}
|
}
|
||||||
|
|
@ -81,6 +82,7 @@ class CallbackModule(CallbackBase):
|
||||||
'task': {
|
'task': {
|
||||||
'name': task.get_name(),
|
'name': task.get_name(),
|
||||||
'id': to_text(task._uuid),
|
'id': to_text(task._uuid),
|
||||||
|
'path': to_text(task.get_path()),
|
||||||
'duration': {
|
'duration': {
|
||||||
'start': current_time()
|
'start': current_time()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ DOCUMENTATION = '''
|
||||||
- Ansible callback plugin for timing individual tasks and overall execution time.
|
- Ansible callback plugin for timing individual tasks and overall execution time.
|
||||||
- "Mashup of 2 excellent original works: https://github.com/jlafon/ansible-profile,
|
- "Mashup of 2 excellent original works: https://github.com/jlafon/ansible-profile,
|
||||||
https://github.com/junaid18183/ansible_home/blob/master/ansible_plugins/callback_plugins/timestamp.py.old"
|
https://github.com/junaid18183/ansible_home/blob/master/ansible_plugins/callback_plugins/timestamp.py.old"
|
||||||
- "Format: C(<task start timestamp> (<length of previous task>) <current elapsed playbook execution time>)"
|
- "Format: C(<task start timestamp>) C(<length of previous task>) C(<current elapsed playbook execution time>)"
|
||||||
- It also lists the top/bottom time consuming tasks in the summary (configurable)
|
- It also lists the top/bottom time consuming tasks in the summary (configurable)
|
||||||
- Before 2.4 only the environment variables were available for configuration.
|
- Before 2.4 only the environment variables were available for configuration.
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue