kolla-ansible/ansible/roles/trove/tasks/precheck.yml
wu.chunyang 303998e294 Switch trove-api to wsgi running under apache.
This change also adds support for Trove backend TLS.

Depends-On: https://review.opendev.org/c/openstack/kolla/+/854744
Change-Id: I2acf7820b24b112b57b0c00a01f5c4b8cb85ce25
2023-02-02 01:22:59 +00:00

27 lines
642 B
YAML

---
- import_role:
name: service-precheck
vars:
service_precheck_services: "{{ trove_services }}"
service_name: "{{ project_name }}"
- name: Get container facts
become: true
kolla_container_facts:
container_engine: "{{ kolla_container_engine }}"
name:
- trove_api
check_mode: false
register: container_facts
- name: Checking free port for Trove API
wait_for:
host: "{{ api_interface_address }}"
port: "{{ trove_api_listen_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['trove_api'] is not defined
- inventory_hostname in groups['trove-api']