trying a more generic way of getting data into templates
This commit is contained in:
parent
141995c880
commit
3af5a44619
1 changed files with 3 additions and 5 deletions
|
@ -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"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue