trying a more generic way of getting data into templates

This commit is contained in:
Tim Flink 2015-05-06 20:48:16 +00:00
parent 141995c880
commit 3af5a44619

View file

@ -21,8 +21,6 @@
template: template:
src: client-libvirt.xml.j2 src: client-libvirt.xml.j2
dest: /root/{{ item }}.libvirt.xml dest: /root/{{ item }}.libvirt.xml
vmhostname: "{{ clients[item]['hostname'] }}" vmhostname: "{{ item['hostname'] }}"
vmmacaddress: "{{ clients[item]['macaddress'] }}" vmmacaddress: "{{ item['macaddress'] }}"
with_items: with_items: clients
- "virt02"
- "virt03"