--- - include_tasks: config-host.yml - include_tasks: config.yml - name: Stopping all slave keepalived containers vars: key: "{{ 'ipv6' if api_address_family == 'ipv6' else 'ipv4_secondaries' }}" addresses: "{{ hostvars[inventory_hostname]['ansible_' + api_interface].get(key, []) | map(attribute='address') | list }}" become: true kolla_docker: action: "stop_container" common_options: "{{ docker_common_options }}" name: "keepalived" when: kolla_internal_vip_address not in addresses notify: - Restart keepalived container - name: Flush handlers meta: flush_handlers