logdetail callback plugin ported to ansible-2.0 and modify old logdetail plugin so it won't run automatically in 2.0

This commit is contained in:
Toshio くらとみ 2016-01-30 04:25:21 +00:00
parent 23256d6f8d
commit 2f4c5bd79f
2 changed files with 268 additions and 0 deletions

View file

@ -162,6 +162,11 @@ class CallbackModule(CallbackBase):
"""
logs playbook results, per host, in /var/log/ansible/hosts
"""
CALLBACK_NAME = 'logdetail'
CALLBACK_TYPE = 'notification'
CALLBACK_VERSION = 2.0
CALLBACK_NEEDS_WHITELIST = True
def __init__(self):
self._task_count = 0
self._play_count = 0