From 54cc25004b1d3166702e13c849ed42102f0ab511 Mon Sep 17 00:00:00 2001 From: Jan Beilicke Date: Sat, 2 May 2020 22:41:32 +0200 Subject: [PATCH] Adds a retry to the URL check whether Cryptpad is available from the public internet --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 768f1d3..0b013c6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -73,7 +73,12 @@ become: false uri: url: "{{ cryptpad_http_unsafe_origin_url }}" + return_content: yes timeout: 300 validate_certs: no + register: url_check delegate_to: localhost + until: "'CryptPad: Zero Knowledge' in url_check.content" + retries: 5 + delay: 10 tags: health