6804a5a682
The flush_handlers clause doesn't honour conditional clauses. Instead, it prints a warning and runs anyway: [WARNING]: flush_handlers task does not support when conditional See: https://github.com/ansible/ansible/pull/41126 TrivialFix Change-Id: Iaf70c2e932ae6dfb723bdb2ba658acdbfe74ebe2
16 lines
482 B
YAML
16 lines
482 B
YAML
---
|
|
- include_tasks: config.yml
|
|
|
|
- set_fact: secondary_addresses={{ hostvars[inventory_hostname]['ansible_' + api_interface].get('ipv4_secondaries', []) | map(attribute='address') | list }}
|
|
|
|
- name: Stopping all slave keepalived containers
|
|
become: true
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "keepalived"
|
|
when: kolla_internal_vip_address not in secondary_addresses
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|