mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 21:31:02 +00:00
add an error when user tries to async something that can't be asynced
This commit is contained in:
@@ -355,6 +355,8 @@ class Runner(object):
|
||||
|
||||
handler = self.action_plugins.get(module_name, None)
|
||||
if handler:
|
||||
if self.background != 0:
|
||||
raise errors.AnsibleError("async mode is not supported with the %s module" % module_name)
|
||||
result = handler.run(conn, tmp, module_name, module_args, inject)
|
||||
else:
|
||||
if self.background == 0:
|
||||
|
||||
Reference in New Issue
Block a user