Migrate services part
This commit is contained in:
parent
7c59e4ae57
commit
73bce8f6e5
157 changed files with 3883 additions and 9 deletions
11
roles/extra_services/tasks/main.yml
Normal file
11
roles/extra_services/tasks/main.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy extra services
|
||||
block:
|
||||
- name: Import tasks to template the site and functions for the reverse proxy
|
||||
ansible.builtin.include_tasks: tasks/steps/template-site-config.yml
|
||||
loop: "{{ extra_services_all }}"
|
||||
loop_control:
|
||||
loop_var: svc
|
14
roles/extra_services/vars/main.yml
Normal file
14
roles/extra_services/vars/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
extra_services_default:
|
||||
- domain: cloud-old.serguzim.me
|
||||
docker_host: nextcloud
|
||||
port: 80
|
||||
caddy_extra: |
|
||||
redir /.well-known/host-meta /public.php?service=host-meta 301
|
||||
redir /.well-known/host-meta.json /public.php?service=host-meta-json 301
|
||||
redir /.well-known/webfinger /public.php?service=webfinger 301
|
||||
redir /.well-known/carddav /remote.php/dav/ 301
|
||||
redir /.well-known/caldav /remote.php/dav/ 301
|
||||
|
||||
extra_services_hidden: "{{ vault_extra_services }}"
|
||||
extra_services_all: "{{ extra_services_default | union(extra_services_hidden) }}"
|
Loading…
Add table
Add a link
Reference in a new issue