ansible/ansible — pull request #1607 by dhozac (2012-11-13 01:35:25+00:00)
Title: Templating fixes and features

These are a few commits touching templating. I can split them out onto separate branches if you prefer, but they're somewhat intertwined, and I've only tested the complete result.

Should fix #1586.
Fixes using () in a $LOOKUP.
Fixes lone $ disabling templating for the rest of the string.
Unifies the logic for variable replacement and lookup plugins, giving automatic access to lookup plugins from template_ds. This means you can do with_items: $LOOKUP(lines, cat file) and have it work, even if with_lines: cat file is preferred.