summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible.cfg.example1
-rw-r--r--callback_plugins/failure_summary.py (renamed from callback_plugins/default_plus_summary.py)12
2 files changed, 6 insertions, 7 deletions
diff --git a/ansible.cfg.example b/ansible.cfg.example
index c8cc5db03..b07705ef1 100644
--- a/ansible.cfg.example
+++ b/ansible.cfg.example
@@ -15,7 +15,6 @@ log_path = /tmp/ansible.log
# prints a descriptive summary of failed tasks
callback_plugins = ./callback_plugins
-stdout_callback = default_plus_summary
# Uncomment to use the provided BYO inventory
#hostfile = inventory/byo/hosts
diff --git a/callback_plugins/default_plus_summary.py b/callback_plugins/failure_summary.py
index 610a3e98a..bcb0123b0 100644
--- a/callback_plugins/default_plus_summary.py
+++ b/callback_plugins/failure_summary.py
@@ -3,20 +3,20 @@
Ansible callback plugin.
'''
-from ansible.plugins.callback.default import CallbackModule as CallbackModule_default
+from ansible.plugins.callback import CallbackBase
from ansible import constants as C
from ansible.utils.color import stringc
-class CallbackModule(CallbackModule_default):
+class CallbackModule(CallbackBase):
'''
- This is like the default callback plugin, but also stores results and
- summarizes failures.
+ This callback plugin stores task results and summarizes failures.
'''
CALLBACK_VERSION = 2.0
- CALLBACK_TYPE = 'stdout'
- CALLBACK_NAME = 'default_plus_summary'
+ CALLBACK_TYPE = 'aggregate'
+ CALLBACK_NAME = 'failure_summary'
+ CALLBACK_NEEDS_WHITELIST = False
def __init__(self):
super(CallbackModule, self).__init__()