diff --git a/service-provider-setup/run-laconic-console.yml b/service-provider-setup/run-laconic-console.yml index 43655e7..1374ca5 100644 --- a/service-provider-setup/run-laconic-console.yml +++ b/service-provider-setup/run-laconic-console.yml @@ -48,6 +48,19 @@ set_fact: ALICE_PK: "{{ alice_pk.stdout }}" + - name: Check if DNS resolves for daemon + command: getent ahosts {{ org_id }}-daemon.{{ full_domain }} + register: dns_check + retries: 5 + delay: 5 + until: dns_check.rc == 0 + ignore_errors: yes + + - name: Fail if DNS does not resolve after retries + fail: + msg: "DNS resolution failed for example.com after 5 retries" + when: dns_check.rc != 0 + - name: Start the laconic console deployment command: laconic-so deployment --dir laconic-console-deployment start