From e35be50a4db247ea0f0879d797de00fa4669cfae Mon Sep 17 00:00:00 2001 From: Martin Wehner Date: Tue, 17 Oct 2017 18:42:21 +0200 Subject: [PATCH] Extract the AEM login page URL to the defaults so that it can be customized --- defaults/main.yml | 3 ++- tasks/start_aem.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8642873..e2114a5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,3 @@ aem_service_state: started -aem_service_timeout: 1200 \ No newline at end of file +aem_service_timeout: 1200 +aem_service_login_url: "http://localhost:{{ aem_port }}/libs/granite/core/content/login.html" diff --git a/tasks/start_aem.yml b/tasks/start_aem.yml index 4c554d1..3f7e39a 100644 --- a/tasks/start_aem.yml +++ b/tasks/start_aem.yml @@ -5,7 +5,7 @@ - name: "Wait for AEM startup. [{{ inventory_hostname }}]" uri: - url: "http://localhost:{{ aem_port }}/libs/granite/core/content/login.html" + url: "{{ aem_service_login_url }}" return_content: yes register: result until: result.content.find("QUICKSTART_HOMEPAGE") != -1