REVERT AFTER DEBUG! Force recreating VMs
This commit is contained in:
@@ -41,6 +41,12 @@
|
|||||||
args:
|
args:
|
||||||
creates: "{{ vm_images_dir }}/{{ vm_name }}.qcow2"
|
creates: "{{ vm_images_dir }}/{{ vm_name }}.qcow2"
|
||||||
|
|
||||||
|
- name: Remove existing VM definition
|
||||||
|
shell: |
|
||||||
|
virsh destroy {{ vm_name }} || true
|
||||||
|
virsh undefine {{ vm_name }} || true
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: Provision VM using virt-install
|
- name: Provision VM using virt-install
|
||||||
shell: |
|
shell: |
|
||||||
virt-install \
|
virt-install \
|
||||||
|
|||||||
Reference in New Issue
Block a user