From ff35c64d337a286ac2864c8403c1840e28bb23b1 Mon Sep 17 00:00:00 2001 From: spmfox Date: Sun, 28 May 2023 10:02:07 -0400 Subject: Initial commit --- roles/libvirt/tasks/vm-undefine.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 roles/libvirt/tasks/vm-undefine.yml (limited to 'roles/libvirt/tasks/vm-undefine.yml') diff --git a/roles/libvirt/tasks/vm-undefine.yml b/roles/libvirt/tasks/vm-undefine.yml new file mode 100644 index 0000000..a43b12b --- /dev/null +++ b/roles/libvirt/tasks/vm-undefine.yml @@ -0,0 +1,9 @@ +- name: Destroy VM + community.libvirt.virt: + name: "{{ libvirt_vm_name }}" + state: destroyed + +- name: Undefine VM + community.libvirt.virt: + name: "{{ libvirt_vm_name }}" + command: undefine -- cgit