1d70f509e3
This is a follow up to I001defc75d1f1e6caa9b1e11246abc6ce17c775b. To maintain previous behaviour, and ensure we catch any host configuration changes, we should perform host configuration during upgrade. Change-Id: I79fcbf1efb02b7187406d3c3fccea6f200bcea69 Related-Bug: #1860161
21 lines
608 B
YAML
21 lines
608 B
YAML
---
|
|
- 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
|