mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
More work on v2, fixing bugs and getting integration tests running
This commit is contained in:
parent
be4dbe76b9
commit
a6d6a89ad1
6 changed files with 53 additions and 20 deletions
|
@ -399,6 +399,12 @@ class ActionBase:
|
|||
else:
|
||||
data = dict()
|
||||
|
||||
# store the module invocation details back into the result
|
||||
data['invocation'] = dict(
|
||||
module_args = module_args,
|
||||
module_name = module_name,
|
||||
)
|
||||
|
||||
debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
||||
return data
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.action import ActionBase
|
||||
from ansible.template import Templar
|
||||
from ansible.utils.boolean import boolean
|
||||
|
||||
class ActionModule(ActionBase):
|
||||
|
||||
|
@ -29,5 +30,7 @@ class ActionModule(ActionBase):
|
|||
if self._task.args:
|
||||
for (k, v) in self._task.args.iteritems():
|
||||
k = templar.template(k)
|
||||
if isinstance(v, basestring) and v.lower() in ('true', 'false', 'yes', 'no'):
|
||||
v = boolean(v)
|
||||
facts[k] = v
|
||||
return dict(changed=True, ansible_facts=facts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue