mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Use plugin system to find modules
This commit is contained in:
parent
5dd2ec2cae
commit
f95fefd8c5
5 changed files with 32 additions and 36 deletions
|
@ -44,7 +44,7 @@ class Task(object):
|
|||
for x in ds.keys():
|
||||
|
||||
# code to allow for saying "modulename: args" versus "action: modulename args"
|
||||
if x in play.playbook.modules_list:
|
||||
if x in utils.plugins.module_finder:
|
||||
ds['action'] = x + " " + ds[x]
|
||||
ds.pop(x)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue