Make variable for pool name

This commit is contained in:
flyingscorpio@clevo 2022-03-05 19:34:14 +01:00
parent 66439ea6df
commit 3a8f330959
3 changed files with 5 additions and 3 deletions

View file

@ -38,7 +38,7 @@
- name: Define session pool
virt_pool:
command: define
name: libvirt-pool
name: "{{ pool_name }}"
uri: "qemu:///session"
xml: "{{ lookup('template', 'libvirt-pool.xml.j2') }}"
@ -46,5 +46,5 @@
virt_pool:
state: active
autostart: true
name: libvirt-pool
name: "{{ pool_name }}"
uri: "qemu:///session"

View file

@ -1,5 +1,5 @@
<pool type='dir'>
<name>libvirt-pool</name>
<name>{{ pool_name }}</name>
<source>
</source>
<target>

View file

@ -0,0 +1,2 @@
---
pool_name: libvirt-pool