29 lines
859 B
YAML
29 lines
859 B
YAML
---
|
|
|
|
- name: Create oidc-test OpenID Connect client configuration
|
|
template:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
with_items:
|
|
- src: oidc-test-client.json.j2
|
|
dest: /etc/hydra/clients.d/oidc-test.json
|
|
notify:
|
|
- Restart cadoles-pod-hydra-v1
|
|
become: true
|
|
|
|
- name: Start oidc-test app
|
|
containers.podman.podman_container:
|
|
name: oidc-test
|
|
image: docker.io/bornholm/oidc-test:v0.0.0-2-gd0583cc
|
|
state: started
|
|
network: host
|
|
recreate: yes
|
|
env:
|
|
OIDC_CLIENT_ID: "{{ oidc_test_app_client_id }}"
|
|
OIDC_CLIENT_SECRET: "{{ oidc_test_app_client_secret }}"
|
|
LOG_LEVEL: 0
|
|
OIDC_ISSUER_URL: "http://{{ public_host }}/"
|
|
OIDC_REDIRECT_URL: "http://{{ public_host }}:8080"
|
|
OIDC_POST_LOGOUT_REDIRECT_URL: "http://{{ public_host }}:8080"
|
|
HTTP_ADDRESS: 0.0.0.0:8080
|
|
become: true |