summaryrefslogtreecommitdiff
path: root/roles/vm/guest/remove/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vm/guest/remove/tasks/main.yml')
-rw-r--r--roles/vm/guest/remove/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/vm/guest/remove/tasks/main.yml b/roles/vm/guest/remove/tasks/main.yml
index 3a677f92..c0fb66d0 100644
--- a/roles/vm/guest/remove/tasks/main.yml
+++ b/roles/vm/guest/remove/tasks/main.yml
@@ -22,6 +22,7 @@
timeout: 5
- name: undefining exisiting vm
- virt:
+ virt_with_undefineflags: ## TODO: switch back to virt once this lands: https://github.com/ansible-collections/community.libvirt/pull/136
name: "{{ inventory_hostname }}"
command: undefine
+ flags: "{{ vm_remove_undefine_flags | default(omit) }}"