diff --git a/roles/myconext/handlers/main.yml b/roles/myconext/handlers/main.yml index f0285c7e7..2bcbce84c 100644 --- a/roles/myconext/handlers/main.yml +++ b/roles/myconext/handlers/main.yml @@ -3,3 +3,4 @@ name: myconextserver state: started restart: true + when: container is success and container is not change diff --git a/roles/myconext/tasks/main.yml b/roles/myconext/tasks/main.yml index afb09dd8a..cc6c20d78 100644 --- a/roles/myconext/tasks/main.yml +++ b/roles/myconext/tasks/main.yml @@ -14,7 +14,7 @@ owner: root group: root mode: "0644" - + - name: Create directory to keep configfiles ansible.builtin.file: dest: "/opt/openconext/myconext" @@ -124,6 +124,8 @@ timeout: 10s retries: 3 start_period: 10s + register: container + - name: Create the client container community.docker.docker_container: @@ -191,4 +193,3 @@ env: HTTPD_CSP: "{{ httpd_csp.lenient_with_static_img_for_idp }}" HTTPD_SERVERNAME: "login.{{ myconext_base_domain }}" -