9702736b3e
Bump stackhpc.libvirt-vm to v1.16.1. Change-Id: I88f20112ab4740fe114a6484f88f4fbfb66863e5
18 lines
583 B
YAML
18 lines
583 B
YAML
---
|
|
|
|
- name: Destroy VMs
|
|
import_role:
|
|
name: stackhpc.libvirt-vm
|
|
vars:
|
|
infra_vm_configdrive_volume:
|
|
name: "{{ vm_name }}-configdrive"
|
|
pool: "{{ hostvars[vm_hostvars.infra_vm_hypervisor].infra_vm_pool }}"
|
|
libvirt_vms:
|
|
- name: "{{ vm_name }}"
|
|
boot_firmware: "{{ vm_hostvars.infra_vm_boot_firmware | default }}"
|
|
memory_mb: "{{ vm_hostvars.infra_vm_memory_mb }}"
|
|
vcpus: "{{ vm_hostvars.infra_vm_vcpus }}"
|
|
volumes: "{{ vm_hostvars.infra_vm_volumes + [infra_vm_configdrive_volume] }}"
|
|
state: "absent"
|
|
become: True
|