From 5627241a436f1d92f78cb9fe0bceeece48bc75dd Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Sat, 2 Nov 2024 14:01:07 +0100 Subject: [PATCH] libvirt: ignore error if pool is already defined --- vagrant/ansible/roles/vm/tasks/libvirt.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/vagrant/ansible/roles/vm/tasks/libvirt.yml b/vagrant/ansible/roles/vm/tasks/libvirt.yml index 7649459..dc1a351 100644 --- a/vagrant/ansible/roles/vm/tasks/libvirt.yml +++ b/vagrant/ansible/roles/vm/tasks/libvirt.yml @@ -52,6 +52,7 @@ - name: define libvirt pool command: virsh -c qemu:///system pool-define-as default --type dir --target /data/vms + ignore_errors: yes - name: build libvirt pool command: virsh -c qemu:///system pool-build default