refactored oauth2-proxy

This commit is contained in:
2025-01-26 16:14:30 +01:00
parent a53ea09da6
commit 08b56ec7cd
9 changed files with 46 additions and 46 deletions

View File

@@ -3,3 +3,8 @@
- name: "include task create-domain-conf.yml"
include_tasks: create-domain-conf.yml
- name: include the docker-oauth2-proxy role
include_role:
name: docker-oauth2-proxy
when: oauth2_proxy_active | bool

View File

@@ -1,3 +1,14 @@
- name: "Add {{oauth2_configuration_file}} to detached_files if oauth2_proxy_active is true"
ansible.builtin.set_fact:
detached_files: >-
{{
(detached_files | default([])) +
[oauth2_configuration_file]
if oauth2_configuration_file not in (detached_files | default([]))
else detached_files | default([])
}}
when: oauth2_proxy_active | default(false)
- name: "backup detached files"
command: >
mv "{{docker_compose_instance_directory}}{{ item }}" "/tmp/{{docker_compose_project_name}}-{{ item }}.backup"