Refactor host variables
This commit is contained in:
parent
8a861e080b
commit
36c8cf2914
8 changed files with 36 additions and 43 deletions
|
@ -2,11 +2,11 @@
|
|||
backup_svc:
|
||||
name: backup
|
||||
|
||||
backup_volumes_service: "{{ host_backup.backup.volumes | map_backup_volumes_service }}"
|
||||
backup_volumes_service: "{{ host_backup.volumes | map_backup_volumes_service }}"
|
||||
|
||||
backup_env:
|
||||
HC_UID: "{{ host_backup.backup.hc_uid }}"
|
||||
UPTIME_KUMA_TOKEN: "{{ host_backup.backup.uptime_kuma_token }}"
|
||||
HC_UID: "{{ host_backup.hc_uid }}"
|
||||
UPTIME_KUMA_TOKEN: "{{ host_backup.uptime_kuma_token }}"
|
||||
|
||||
RESTIC_REPOSITORY: "{{ vault_backup.restic.repository }}"
|
||||
RESTIC_PASSWORD: "{{ vault_backup.restic.password }}"
|
||||
|
@ -28,4 +28,4 @@ backup_compose:
|
|||
- --retry-lock=1m
|
||||
restart: never
|
||||
hostname: "{{ ansible_facts.hostname }}"
|
||||
volumes: "{{ host_backup.backup.volumes | map_backup_volumes }}"
|
||||
volumes: "{{ host_backup.volumes | map_backup_volumes }}"
|
||||
|
|
|
@ -8,7 +8,6 @@ forgejo_svc:
|
|||
host: "{{ postgres.host }}"
|
||||
port: "{{ postgres.port }}"
|
||||
ssh_port: 22
|
||||
ssh_port_alt: 3022
|
||||
|
||||
forgejo_env:
|
||||
FORGEJO__database__DB_TYPE: postgres
|
||||
|
@ -90,6 +89,5 @@ forgejo_compose:
|
|||
app:
|
||||
ports:
|
||||
- "{{ svc.ssh_port }}:{{ svc.ssh_port }}"
|
||||
- "{{ svc.ssh_port_alt }}:{{ svc.ssh_port }}"
|
||||
volumes:
|
||||
data:
|
||||
|
|
|
@ -12,10 +12,8 @@ synapse_svc:
|
|||
reverse_proxy synapse:8008
|
||||
}
|
||||
extra_svcs:
|
||||
- domain: msrg.cc:8008
|
||||
- domain: matrix.msrg.cc:8448
|
||||
additional_domains:
|
||||
- matrix.msrg.cc:8448
|
||||
- matrix.msrg.cc:8008
|
||||
- msrg.cc:8448
|
||||
docker_host: synapse
|
||||
port: 8008
|
||||
|
|
Reference in a new issue