ansible: working

This commit is contained in:
Kyattsukuro 2026-10-09 22:12:24 +02:00
parent 02b27cf74d
commit 513fa9eacc
5 changed files with 14 additions and 14 deletions

View File

@ -6,4 +6,3 @@ community.docker.docker_compose_v2:
services: ["gitea"]
state: "restarted"
when: not _gitea_already_restarted

View File

@ -16,5 +16,5 @@ galaxy_info:
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
# dependencies:
# - role: base
dependencies:
- role: traefik

View File

@ -16,14 +16,15 @@
- name: Copy ssh config
copy:
src: files/ssh
dest: "{{ path }}/config/gitea/ssh"
dest: "{{ path }}/config/gitea"
- import_role:
name: storage_mount
vars:
storagebox_override:
storage_mount_override:
host: "{{ gitea.networkmount.host }}"
host_path: "{{ gitea.networkmount.host_path }}"
type: "{{ gitea.networkmount.type }}"
args: "{{ gitea.networkmount.args }}"
dest_path: "{{ gitea.data_path }}"
when: gitea.networkmount.host | length > 1

View File

@ -29,7 +29,7 @@ services:
traefik.http.routers.gitea.tls.certResolver: hetzner
traefik.http.services.gitea-https.loadbalancer.server.port: 3000
{% if gitea.enable_ssh %}
{% if gitea.enable_ssh -%}
traefik.tcp.routers.gitea.rule: "HostSNI(`*`)"
traefik.tcp.routers.gitea.entrypoints: public_ssh
traefik.tcp.services.gitea-ssh.loadbalancer.server.port: 22