Michal Wyszkowski ca90fb8327 loadbalancer: fix upgrade task when podman is used
Closes-Bug: 2063896
Change-Id: Ie0d6a8f458562eb32171b5fe23b8cd0cd375dcfb
2024-04-27 11:48:25 +02:00

22 lines
660 B
YAML

---
# TODO(dawudm) We should replace these two tasks with a task to check the port
# is free in precheck.yml in the D release
- name: Stop and remove containers for haproxy exporter containers
become: true
kolla_container:
action: "stop_and_remove_container"
common_options: "{{ docker_common_options }}"
name: "prometheus_haproxy_exporter"
when:
- inventory_hostname in groups['loadbalancer']
- name: Removing config for haproxy exporter
file:
path: "{{ node_config_directory }}/prometheus-haproxy-exporter"
state: "absent"
become: true
when:
- inventory_hostname in groups['loadbalancer']
- import_tasks: deploy.yml