Disallow running async tasks with lookup plugins

Fixes #2897
pull/3913/head
James Cammarata 11 years ago
parent e09ce0a3a7
commit 978af89175

@ -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

Loading…
Cancel
Save