From faf35d3d8dac741ff08b711dc8261f72203c05ef Mon Sep 17 00:00:00 2001 From: LegenJCdary Date: Fri, 27 Oct 2023 14:02:54 +0200 Subject: [PATCH] Remove field "data" from msg format in plugin log_plays_adjusted It's too much debug for now, the only useful info was "changed": true/false. --- source/plugins/log_plays_adjusted.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/plugins/log_plays_adjusted.py b/source/plugins/log_plays_adjusted.py index 5dcd32f9..124ebbc6 100644 --- a/source/plugins/log_plays_adjusted.py +++ b/source/plugins/log_plays_adjusted.py @@ -27,7 +27,7 @@ class CallbackModule(CallbackBase): CALLBACK_NEEDS_WHITELIST = True TIME_FORMAT = "%b %d %Y %H:%M:%S" - MSG_FORMAT = "%(now)s - %(playbook)s - %(task_name)s - %(category)s\n%(data)s\n\n" + MSG_FORMAT = "%(now)s - %(host)s - %(playbook)s - %(task_name)s - %(category)s\n\n" def __init__(self): @@ -62,6 +62,7 @@ def log(self, result, category): self.MSG_FORMAT % { "now": now, + "host": result._host.name, "playbook": self.playbook, "task_name": result._task.name, "category": category,