mirror of https://github.com/ansible/ansible.git
Merge pull request #3018 from dsedivec/devel
Plug-ins loaded from top-level plug-in directorypull/2999/merge
commit
5fdca267ac
@ -0,0 +1,15 @@
|
|||||||
|
from ansible.runner import return_data
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule (object):
|
||||||
|
def __init__(self, runner):
|
||||||
|
self.runner = runner
|
||||||
|
|
||||||
|
def run(self, conn, tmp, module_name, module_args, inject,
|
||||||
|
complex_args=None, **kwargs):
|
||||||
|
# This plug-in should be ignored in deference to
|
||||||
|
# category/categorized_plugin.py, so it should never actually
|
||||||
|
# run.
|
||||||
|
return return_data.ReturnData(
|
||||||
|
conn=conn, comm_ok=True,
|
||||||
|
result={"msg": "this plug-in should never be run"})
|
@ -0,0 +1,11 @@
|
|||||||
|
from ansible.runner import return_data
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule (object):
|
||||||
|
def __init__(self, runner):
|
||||||
|
self.runner = runner
|
||||||
|
|
||||||
|
def run(self, conn, tmp, module_name, module_args, inject,
|
||||||
|
complex_args=None, **kwargs):
|
||||||
|
return return_data.ReturnData(conn=conn, comm_ok=True,
|
||||||
|
result={"msg": "categorized"})
|
@ -0,0 +1,11 @@
|
|||||||
|
from ansible.runner import return_data
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule (object):
|
||||||
|
def __init__(self, runner):
|
||||||
|
self.runner = runner
|
||||||
|
|
||||||
|
def run(self, conn, tmp, module_name, module_args, inject,
|
||||||
|
complex_args=None, **kwargs):
|
||||||
|
return return_data.ReturnData(conn=conn, comm_ok=True,
|
||||||
|
result={"msg": "uncategorized"})
|
Loading…
Reference in New Issue