|
|
|
@ -18,6 +18,7 @@ from __future__ import (absolute_import, division, print_function)
|
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
|
from ansible.plugins.action import ActionBase
|
|
|
|
|
from ansible.utils.vars import merge_hash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ActionModule(ActionBase):
|
|
|
|
@ -27,7 +28,9 @@ class ActionModule(ActionBase):
|
|
|
|
|
task_vars = dict()
|
|
|
|
|
|
|
|
|
|
results = super(ActionModule, self).run(tmp, task_vars)
|
|
|
|
|
results.update(self._execute_module(tmp=tmp, task_vars=task_vars))
|
|
|
|
|
# remove as modules might hide due to nolog
|
|
|
|
|
del results['invocation']['module_args']
|
|
|
|
|
results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars))
|
|
|
|
|
# Remove special fields from the result, which can only be set
|
|
|
|
|
# internally by the executor engine. We do this only here in
|
|
|
|
|
# the 'normal' action, as other action plugins may set this.
|
|
|
|
|