From ffcd2b6f618a2b5b78bc2140f0d0b6a5fb9b553a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 2 Jun 2023 21:21:32 +0200 Subject: [PATCH] wip --- .../files/stackrox-configure-hook/configure.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/infrastructure/files/stackrox-configure-hook/configure.yaml b/infrastructure/files/stackrox-configure-hook/configure.yaml index e1f2dd1..2784044 100644 --- a/infrastructure/files/stackrox-configure-hook/configure.yaml +++ b/infrastructure/files/stackrox-configure-hook/configure.yaml @@ -66,8 +66,16 @@ The JMESPath library is required by this playbook. Please install the JMESPath library with 'pip install jmespath'. - # TODO: wait for the Central to be ready - + - name: Wait for the Central to be ready + uri: + url: 'https://{{ central_hostname }}' + validate_certs: '{{ validate_certs }}' + register: healthcheck + changed_when: false + until: healthcheck is succeeded + retries: 60 + delay: 5 + - name: Find signature integrations uri: url: '{{ acs_api }}/signatureintegrations'