Skip to content

Commit

Permalink
Mise à jour du contenu du callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannig committed Feb 13, 2020
1 parent 4a31e7d commit 96e2a21
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions chapitre-11/callback_plugins/test.py
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)

0 comments on commit 96e2a21

Please sign in to comment.