2017-08-02 10:43:48 +00:00
|
|
|
---
|
|
|
|
- name: Ensure that the seed VM is deprovisioned
|
|
|
|
hosts: seed-hypervisor
|
|
|
|
vars:
|
|
|
|
seed_host: "{{ groups['seed'][0] }}"
|
|
|
|
roles:
|
2017-12-05 15:57:11 +00:00
|
|
|
- role: stackhpc.libvirt-vm
|
2017-08-02 10:43:48 +00:00
|
|
|
seed_vm_configdrive_volume:
|
2019-01-11 19:27:48 +00:00
|
|
|
name: "{{ hostvars[seed_host].seed_vm_name }}-configdrive"
|
|
|
|
pool: "{{ hostvars[seed_host].seed_vm_pool }}"
|
|
|
|
libvirt_vm_name: "{{ hostvars[seed_host].seed_vm_name }}"
|
|
|
|
libvirt_vm_memory_mb: "{{ hostvars[seed_host].seed_vm_memory_mb }}"
|
|
|
|
libvirt_vm_vcpus: "{{ hostvars[seed_host].seed_vm_vcpus }}"
|
|
|
|
libvirt_vm_volumes: "{{ hostvars[seed_host].seed_vm_volumes + [seed_vm_configdrive_volume] }}"
|
2017-08-02 10:43:48 +00:00
|
|
|
libvirt_vm_state: "absent"
|
|
|
|
become: True
|