mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Merge pull request #396 from jhoekx/setup-json
Arguments to setup module should be json.
This commit is contained in:
commit
81866ccac4
1 changed files with 2 additions and 0 deletions
|
@ -275,6 +275,8 @@ class Runner(object):
|
||||||
return [ utils.smjson(dict(skipped=True)), None, 'skipped' ]
|
return [ utils.smjson(dict(skipped=True)), None, 'skipped' ]
|
||||||
|
|
||||||
if self.module_name == 'setup':
|
if self.module_name == 'setup':
|
||||||
|
if not args:
|
||||||
|
args = {}
|
||||||
args = self._add_setup_vars(inject, args)
|
args = self._add_setup_vars(inject, args)
|
||||||
args = self._add_setup_metadata(args)
|
args = self._add_setup_metadata(args)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue