delete fw vars before undefine
This commit is contained in:
parent
c9d7c99f77
commit
263907032b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user