9702736b3e
Bump stackhpc.libvirt-vm to v1.16.1. Change-Id: I88f20112ab4740fe114a6484f88f4fbfb66863e5
22 lines
926 B
YAML
22 lines
926 B
YAML
---
|
|
- name: Ensure that the seed VM is deprovisioned
|
|
hosts: seed-hypervisor
|
|
vars:
|
|
seed_host: "{{ groups['seed'][0] }}"
|
|
roles:
|
|
- role: stackhpc.libvirt-vm
|
|
seed_vm_configdrive_volume:
|
|
name: "{{ hostvars[seed_host].seed_vm_name }}-configdrive"
|
|
pool: "{{ hostvars[seed_host].seed_vm_pool }}"
|
|
libvirt_vms:
|
|
- name: "{{ hostvars[seed_host].seed_vm_name }}"
|
|
boot_firmware: "{{ hostvars[seed_host].seed_vm_boot_firmware | default }}"
|
|
machine: "{{ hostvars[seed_host].seed_vm_machine | default }}"
|
|
memory_mb: "{{ hostvars[seed_host].seed_vm_memory_mb }}"
|
|
vcpus: "{{ hostvars[seed_host].seed_vm_vcpus }}"
|
|
volumes: "{{ hostvars[seed_host].seed_vm_volumes + [seed_vm_configdrive_volume] }}"
|
|
interfaces: "{{ hostvars[seed_host].seed_vm_interfaces }}"
|
|
console_log_enabled: true
|
|
state: absent
|
|
become: True
|