From 47c1f43247750fe73a9bc69ec577634a4275bca3 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Tue, 14 Dec 2021 11:59:03 +0100 Subject: [PATCH] Adjust service start timeout --- .github/workflows/ci.yml | 3 +++ roles/keycloak/templates/keycloak-service.sh.j2 | 2 +- roles/keycloak/templates/keycloak.service.j2 | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a55b81..9034acc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,6 @@ jobs: - name: Run molecule test run: molecule test --all working-directory: ./ansible_collections/middleware_automation/keycloak + env: + PY_COLORS: '1' + ANSIBLE_FORCE_COLOR: '1' diff --git a/roles/keycloak/templates/keycloak-service.sh.j2 b/roles/keycloak/templates/keycloak-service.sh.j2 index 569c856..6e9a4e2 100755 --- a/roles/keycloak/templates/keycloak-service.sh.j2 +++ b/roles/keycloak/templates/keycloak-service.sh.j2 @@ -1,6 +1,6 @@ #!/bin/bash -eu -set -o pipefail +set +u -o pipefail checkEnvVar() { local envVar=${1} diff --git a/roles/keycloak/templates/keycloak.service.j2 b/roles/keycloak/templates/keycloak.service.j2 index a3aa846..2824a25 100644 --- a/roles/keycloak/templates/keycloak.service.j2 +++ b/roles/keycloak/templates/keycloak.service.j2 @@ -11,7 +11,7 @@ Group={{ keycloak_service_group }} PIDFile={{ keycloak_service_pidfile }} ExecStart={{ keycloak_dest }}/keycloak-service.sh start ExecStop={{ keycloak_dest }}/keycloak-service.sh stop -TimeoutStartSec=60 +TimeoutStartSec=90 TimeoutStopSec=60 LimitNOFILE=102642