-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Make coding more python3-ish | ||
from __future__ import (absolute_import, division, print_function) | ||
__metaclass__ = type | ||
|
||
from ansible.plugins.callback.default import CallbackModule as CallbackModule_default | ||
|
||
import json | ||
DOCUMENTATION = ''' | ||
callback: test | ||
callback_type: stdout | ||
requirements: | ||
short_description: Adds time to play stats | ||
version_added: "2.0" | ||
description: | ||
- This callback is a test. | ||
options: | ||
''' | ||
|
||
class CallbackModule(CallbackModule_default): | ||
CALLBACK_VERSION = 2.0 | ||
CALLBACK_TYPE = 'stdout' | ||
CALLBACK_NAME = 'test' | ||
|
||
def v2_runner_on_start(self, host, task): | ||
pass | ||
|
||
def _dump_results(self, result, indent=None, sort_keys=True, keep_invocation=False): | ||
return CallbackModule_default._dump_results(self, result, indent=4, sort_keys=True, keep_invocation=False) |