ansible: working
This commit is contained in:
parent
02b27cf74d
commit
513fa9eacc
@ -1,9 +1,8 @@
|
||||
- name: restart container
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ path }}"
|
||||
project_name: "{{ role_name }}"
|
||||
recreate: "always"
|
||||
services: ["gitea"]
|
||||
state: "restarted"
|
||||
when: not _gitea_already_restarted
|
||||
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ path }}"
|
||||
project_name: "{{ role_name }}"
|
||||
recreate: "always"
|
||||
services: ["gitea"]
|
||||
state: "restarted"
|
||||
when: not _gitea_already_restarted
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user