1
0

delete fw vars before undefine

This commit is contained in:
michael 2022-10-31 00:02:50 +13:00
parent c9d7c99f77
commit 263907032b

View File

@ -31,16 +31,16 @@
# state: destroyed
# name: "{{ vm_name }}"
- name: undefine (delete) the vm
community.libvirt.virt:
command: undefine
name: "{{ vm_name }}"
- name: delete the firmware vars file
ansible.builtin.file:
path: "{{ firmware_vhd_pool_dir }}/{{ vm_name }}_VARS.fd"
state: absent
- name: undefine (delete) the vm
community.libvirt.virt:
command: undefine
name: "{{ vm_name }}"
- name: delete the root vhd
when: delete_root_vhd
ansible.builtin.file: