Make variable for pool name
This commit is contained in:
parent
66439ea6df
commit
3a8f330959
3 changed files with 5 additions and 3 deletions
|
@ -38,7 +38,7 @@
|
||||||
- name: Define session pool
|
- name: Define session pool
|
||||||
virt_pool:
|
virt_pool:
|
||||||
command: define
|
command: define
|
||||||
name: libvirt-pool
|
name: "{{ pool_name }}"
|
||||||
uri: "qemu:///session"
|
uri: "qemu:///session"
|
||||||
xml: "{{ lookup('template', 'libvirt-pool.xml.j2') }}"
|
xml: "{{ lookup('template', 'libvirt-pool.xml.j2') }}"
|
||||||
|
|
||||||
|
@ -46,5 +46,5 @@
|
||||||
virt_pool:
|
virt_pool:
|
||||||
state: active
|
state: active
|
||||||
autostart: true
|
autostart: true
|
||||||
name: libvirt-pool
|
name: "{{ pool_name }}"
|
||||||
uri: "qemu:///session"
|
uri: "qemu:///session"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<pool type='dir'>
|
<pool type='dir'>
|
||||||
<name>libvirt-pool</name>
|
<name>{{ pool_name }}</name>
|
||||||
<source>
|
<source>
|
||||||
</source>
|
</source>
|
||||||
<target>
|
<target>
|
||||||
|
|
2
roles/libvirt/vars/main.yml
Normal file
2
roles/libvirt/vars/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
pool_name: libvirt-pool
|
Loading…
Add table
Reference in a new issue