redhat-cop / infra-ansible

Tooling / Ansible to support the many aspects of infrastructure installation, setup and configuration.
Apache License 2.0
214 stars 120 forks source link

Add wait for Tower API in config-ansible-tower-ocp-ldap-ca role #653

Closed MAHDTech closed 3 years ago

MAHDTech commented 3 years ago

What does this PR do?

Adds a check that the Tower API is available before ending the role to ensure that any following roles that depend on the API being available will work.

How should this be tested?

Run the role

Is there a relevant Issue open for this?

N/A

Other Relevant info, PRs, etc.

On slower environments there is a race condition where the Deployment reports as being Ready due to passing healthcheck but the API is not ready to serve requests.

People to notify

cc: @redhat-cop/infra-ansible