feat: reload hydra clients instead of restart cadoles-pod-hydra-v1 containers

This commit is contained in:
wpetit 2022-07-22 12:12:09 +02:00
parent d4c78b00de
commit 3452c72f98
4 changed files with 18 additions and 4 deletions

View File

@ -33,4 +33,8 @@
service:
name: cadoles-pod-shibboleth-sp-v3
state: restarted
become: true
become: true
- name: Reload hydra clients
ansible.builtin.include_tasks:
file: hydra-reload-clients.yml

View File

@ -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

View File

@ -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

View File

@ -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