ansible/ansible — pull request #346 by jhoekx (2012-05-09 14:49:29+00:00)
Title: Support nested variables in varReplace

This fixes #314 .

You can now use nested variables in playbooks
No_engine is the default templating strategy.

That bug is for 0.5, but it bothered me a bit in some of my playbooks. You could pull earlier as it gets rid of a lot of expensive jinja2 calls and seems much snappier.

I made sure you (or I) can use varLookup for #345.

An extract from a playbook:

```
- hosts: ...

vars:
iscsi_name:
iscsi_portal:
eth1: 192.168.130.1
eth2: 192.168.131.1

- name: create iscsi config dir
action: file state=directory dest=/var/lib/iscsi/nodes//$item\,3260\,1
with_items:
- ${iscsi_portal.eth1}
- ${iscsi_portal.eth2}
```

Do we also want to support arrays like `${iscsi_portal[0]}`?