diff --git a/handlers/main.yml b/handlers/main.yml index 9437d09..43ccb0f 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -33,4 +33,8 @@ service: name: cadoles-pod-shibboleth-sp-v3 state: restarted - become: true \ No newline at end of file + become: true + +- name: Reload hydra clients + ansible.builtin.include_tasks: + file: hydra-reload-clients.yml \ No newline at end of file diff --git a/tasks/hydra-reload-clients.yml b/tasks/hydra-reload-clients.yml new file mode 100644 index 0000000..7c96974 --- /dev/null +++ b/tasks/hydra-reload-clients.yml @@ -0,0 +1,11 @@ +--- + +- name: Start cadoles-pod-hydra-v1 + service: + name: cadoles-pod-hydra-v1 + state: started + become: true + +- name: Reload hydra clients + command: podman exec -it cadoles-pod-hydra-v1 /bin/sh -c 'HYDRA_SERVE_ADMIN_SCHEME=http reload-hydra-clients' + become: true \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index d9d3361..d2115ff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -57,7 +57,7 @@ dest: "/etc/hydra/clients.d/{{ item.client_id }}.json" with_items: "{{ hydra_clients }}" notify: - - Restart cadoles-pod-hydra-v1 + - Reload hydra clients become: true - name: Configure cadoles-pod-hydra-v1 diff --git a/tasks/oidc-test.yml b/tasks/oidc-test.yml index ae0c4db..c0c7395 100644 --- a/tasks/oidc-test.yml +++ b/tasks/oidc-test.yml @@ -11,9 +11,8 @@ redirect_uris: ["{{ oidc_test_app_public_base_url }}/oauth2/callback"] post_logout_redirect_uris: ["{{ oidc_test_app_public_base_url }}"] logo_uri: https://www.cadoles.com/images/logo.svg - notify: - - Restart cadoles-pod-hydra-v1 + - Reload hydra clients become: true - name: Start oidc-test app