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:
src: client-libvirt.xml.j2
dest: /root/{{ item }}.libvirt.xml
vmhostname: "{{ clients[item]['hostname'] }}"
vmmacaddress: "{{ clients[item]['macaddress'] }}"
with_items:
- "virt02"
- "virt03"
vmhostname: "{{ item['hostname'] }}"
vmmacaddress: "{{ item['macaddress'] }}"
with_items: clients