diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index bdffba5527..7645450ee1 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -86,11 +86,6 @@ class Task(object): elif x.startswith("with_"): if isinstance(ds[x], basestring): param = ds[x].strip() - # Only a variable, no logic - if (param.startswith('{{') and - param.find('}}') == len(ds[x]) - 2 and - param.find('|') == -1): - utils.warning("It is unnecessary to use '{{' in loops, leave variables in loop expressions bare.") plugin_name = x.replace("with_","") if plugin_name in utils.plugins.lookup_loader: