diff --git a/changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml b/changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml new file mode 100644 index 0000000000..11c2fb4163 --- /dev/null +++ b/changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml @@ -0,0 +1,2 @@ +bugfixes: + - profile_tasks callback - Fix the last task time when running multiple plays (https://github.com/ansible/ansible/issues/52760) diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index f8cec495bc..fedbba7dce 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -171,6 +171,7 @@ class CallbackModule(CallbackBase): self._display.display(filled("", fchar="=")) timestamp(self) + self.current = None results = self.stats.items()