mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
refactored oauth2-proxy
This commit is contained in:
@@ -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
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user