-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResultCallback.py
55 lines (37 loc) · 1.47 KB
/
ResultCallback.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/python2.7
try:
from ansible.plugins.callback import CallbackBase
except (CallbackBase, ImportError), cie:
print str(cie)
class ResultCallback(CallbackBase):
data = ''
def v2_runner_on_failed(self, result, ignore_errors=False):
self.data = result._result
def v2_runner_on_ok(self, result, **kwargs):
self.data = result._result
def v2_playbook_on_not_import_for_host(self, result, missing_file):
self.data = result._result
def v2_runner_on_unreachable(self, result):
self.data = result._result
def v2_runner_on_file_diff(self, result, diff):
self.data = result._result
def v2_runner_on_async_failed(self, result):
self.data = result._result
def v2_runner_item_on_ok(self, result):
self.data = result._result
def v2_playbook_on_notify(self, result, handler):
self.data = result._result
def v2_runner_on_skipped(self, result):
self.data = result._result
def v2_playbook_on_import_for_host(self, result, imported_file):
self.data = result._result
def v2_runner_retry(self, result):
self.data = result._result
def v2_runner_on_async_ok(self, result):
self.data = result._result
def v2_runner_on_async_poll(self, result):
self.data = result._result
def v2_runner_item_on_failed(self, result):
self.data = result._result
def v2_runner_item_on_skipped(self, result):
self.data = result._result