summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook
diff options
context:
space:
mode:
authorDaniel Hokka Zakrisson <daniel@hozac.com>2012-06-09 21:59:22 +0200
committerDaniel Hokka Zakrisson <daniel@hozac.com>2012-06-09 21:59:22 +0200
commitba1e373034223d277f9ef0be91b8a029e557408a (patch)
treead9a3fb9b7af6c688f6fc738488ab6872b4232e9 /lib/ansible/playbook
parent4e254f23d9d31887dd15e49319e82e4e14f16ed3 (diff)
downloadansible-ba1e373034223d277f9ef0be91b8a029e557408a.tar.gz
Allow with_items to specify a variable
Diffstat (limited to 'lib/ansible/playbook')
-rw-r--r--lib/ansible/playbook/play.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py
index 3f579747f4..40274c5108 100644
--- a/lib/ansible/playbook/play.py
+++ b/lib/ansible/playbook/play.py
@@ -89,6 +89,8 @@ class Play(object):
items = y.get('with_items',None)
if items is None:
items = [ '' ]
+ elif isinstance(items, basestring):
+ items = utils.varLookup(items, task_vars)
for item in items:
mv = task_vars.copy()
mv['item'] = item