feat: hydra-oidc deployment

This commit is contained in:
2022-08-10 17:46:19 +02:00
parent 4190225f5a
commit fb773a98d1
9 changed files with 137 additions and 10 deletions

20
tasks/hydra-oidc.yml Normal file
View File

@ -0,0 +1,20 @@
---
- name: Install cadoles-pod-hydra-oidc-v1 package
ansible.builtin.apt:
name:
- "cadoles-pod-hydra-oidc-v1={{ cadoles_pod_hydra_oidc_v1_package_version }}"
update_cache: yes
state: present
become: true
- name: Configure cadoles-pod-hydra-oidc-v1
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
with_items:
- src: cadoles-pod-hydra-oidc-v1.conf.j2
dest: /etc/cadoles-pod-hydra-oidc-v1.conf
notify:
- Restart cadoles-pod-hydra-oidc-v1
become: true

View File

@ -95,6 +95,10 @@
ansible.builtin.include_tasks: hydra-saml.yml
when: enable_hydra_saml
- name: Configure OIDC authentification if enabled
ansible.builtin.include_tasks: hydra-oidc.yml
when: enable_hydra_oidc
- name: Start OIDC Test app if enabled
ansible.builtin.include_tasks: start-oidc-test.yml
when: enable_oidc_test_app

View File

@ -18,7 +18,7 @@
- name: Start oidc-test app
containers.podman.podman_container:
name: oidc-test
image: docker.io/bornholm/oidc-test:v0.0.0-4-gd786d3a
image: docker.io/bornholm/oidc-test:v0.0.0-6-g96f1f8f
state: started
network: host
restart_policy: on-failure