c583922c27
This change allows you to define additional VMs to deploy on the seed-hypervisor. Co-authored-by: Piotr Parczewski <piotr@stackhpc.com> Co-authored-by: Will Szumski <will@stackhpc.com> Co-authored-by: Mark Goddard <mark@stackhpc.com> Story: 2008741 Task: 42095 Change-Id: I8055fc5eb0a9edadcb35767303c659922f2d07ca
17 lines
507 B
YAML
17 lines
507 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 }}"
|
|
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
|