diff options
Diffstat (limited to 'ansible/roles/destroy/tasks/cleanup_host.yml')
| -rw-r--r-- | ansible/roles/destroy/tasks/cleanup_host.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ansible/roles/destroy/tasks/cleanup_host.yml b/ansible/roles/destroy/tasks/cleanup_host.yml index 96389564f..3ed8705b1 100644 --- a/ansible/roles/destroy/tasks/cleanup_host.yml +++ b/ansible/roles/destroy/tasks/cleanup_host.yml @@ -15,7 +15,12 @@ destroy_include_dev: "{{ destroy_include_dev }}" kolla_ansible_inventories: "{{ ansible_inventory_sources | join(' ') }}" -- block: +- when: + - enable_octavia | bool + - octavia_auto_configure | bool + - octavia_network_type == 'tenant' + - inventory_hostname in groups['octavia-health-manager'] + block: - name: Disable octavia-interface service service: name: octavia-interface @@ -32,8 +37,3 @@ file: path: /etc/dhcp/octavia-dhclient.conf state: absent - when: - - enable_octavia | bool - - octavia_auto_configure | bool - - octavia_network_type == 'tenant' - - inventory_hostname in groups['octavia-health-manager'] |
