diff --git a/roles/libvirt/tasks/main.yml b/roles/libvirt/tasks/main.yml index acf7cfa..6af15cb 100644 --- a/roles/libvirt/tasks/main.yml +++ b/roles/libvirt/tasks/main.yml @@ -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" diff --git a/roles/libvirt/templates/libvirt-pool.xml.j2 b/roles/libvirt/templates/libvirt-pool.xml.j2 index d102d6c..eee95d2 100644 --- a/roles/libvirt/templates/libvirt-pool.xml.j2 +++ b/roles/libvirt/templates/libvirt-pool.xml.j2 @@ -1,5 +1,5 @@ - libvirt-pool + {{ pool_name }} diff --git a/roles/libvirt/vars/main.yml b/roles/libvirt/vars/main.yml new file mode 100644 index 0000000..7438bb2 --- /dev/null +++ b/roles/libvirt/vars/main.yml @@ -0,0 +1,2 @@ +--- +pool_name: libvirt-pool