aboutsummaryrefslogtreecommitdiff
path: root/ansible/nova-libvirt-cleanup.yml
blob: 638e9bbcb4edcde3e16196b59875c9a4c40138f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: Gather facts
  import_playbook: gather-facts.yml

- name: Remove nova_libvirt container
  gather_facts: false
  hosts:
    - compute
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ nova_libvirt_cleanup_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  tags:
    - nova-libvirt-cleanup
  tasks:
    - name: Clean up nova libvirt container and configuration
      import_role:
        name: nova-cell
        tasks_from: libvirt-cleanup.yml