ansible: working
This commit is contained in:
parent
02b27cf74d
commit
513fa9eacc
@ -1,9 +1,8 @@
|
|||||||
- name: restart container
|
- name: restart container
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "{{ path }}"
|
project_src: "{{ path }}"
|
||||||
project_name: "{{ role_name }}"
|
project_name: "{{ role_name }}"
|
||||||
recreate: "always"
|
recreate: "always"
|
||||||
services: ["gitea"]
|
services: ["gitea"]
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
when: not _gitea_already_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.
|
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||||
# Maximum 20 tags per role.
|
# Maximum 20 tags per role.
|
||||||
|
|
||||||
# dependencies:
|
dependencies:
|
||||||
# - role: base
|
- role: traefik
|
||||||
|
|||||||
@ -16,14 +16,15 @@
|
|||||||
- name: Copy ssh config
|
- name: Copy ssh config
|
||||||
copy:
|
copy:
|
||||||
src: files/ssh
|
src: files/ssh
|
||||||
dest: "{{ path }}/config/gitea/ssh"
|
dest: "{{ path }}/config/gitea"
|
||||||
|
|
||||||
- import_role:
|
- import_role:
|
||||||
name: storage_mount
|
name: storage_mount
|
||||||
vars:
|
vars:
|
||||||
storagebox_override:
|
storage_mount_override:
|
||||||
host: "{{ gitea.networkmount.host }}"
|
host: "{{ gitea.networkmount.host }}"
|
||||||
host_path: "{{ gitea.networkmount.host_path }}"
|
host_path: "{{ gitea.networkmount.host_path }}"
|
||||||
|
type: "{{ gitea.networkmount.type }}"
|
||||||
args: "{{ gitea.networkmount.args }}"
|
args: "{{ gitea.networkmount.args }}"
|
||||||
dest_path: "{{ gitea.data_path }}"
|
dest_path: "{{ gitea.data_path }}"
|
||||||
when: gitea.networkmount.host | length > 1
|
when: gitea.networkmount.host | length > 1
|
||||||
|
|||||||
@ -29,7 +29,7 @@ services:
|
|||||||
traefik.http.routers.gitea.tls.certResolver: hetzner
|
traefik.http.routers.gitea.tls.certResolver: hetzner
|
||||||
traefik.http.services.gitea-https.loadbalancer.server.port: 3000
|
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.rule: "HostSNI(`*`)"
|
||||||
traefik.tcp.routers.gitea.entrypoints: public_ssh
|
traefik.tcp.routers.gitea.entrypoints: public_ssh
|
||||||
traefik.tcp.services.gitea-ssh.loadbalancer.server.port: 22
|
traefik.tcp.services.gitea-ssh.loadbalancer.server.port: 22
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user