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:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue