Commit 978af891 by James Cammarata

Disallow running async tasks with lookup plugins

Fixes #2897
parent e09ce0a3
......@@ -458,6 +458,9 @@ class Runner(object):
# executing using with_items, so make multiple calls
# TODO: refactor
if self.background > 0:
raise errors.AnsibleError("lookup plugins (with_*) cannot be used with async tasks")
aggregrate = {}
all_comm_ok = True
all_changed = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment