Merge pull request '🚚 Change internal names from gitea to forgejo' (!143) from 842-forgejo-internal-names into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/143
Reviewed-by: Alexander Dahl <alex@netz39.de>
Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
Stefan Haun 2023-04-04 12:58:11 +02:00
commit d94f5a2882
2 changed files with 12 additions and 12 deletions

View file

@ -37,27 +37,27 @@
tasks:
- name: Check if gitea data dir exists
- name: Check if forgejo data dir exists
ansible.builtin.stat:
path: "{{ data_dir }}/gitea"
register: gitea_dir
- name: Fail if gitea data dir does not exist
path: "{{ data_dir }}/forgejo"
register: forgejo_dir
- name: Fail if forgejo data dir does not exist
ansible.builtin.fail:
msg: "Gitea data dir is missing, please restore from the backup!"
when: not gitea_dir.stat.exists
msg: "Forgejo data dir is missing, please restore from the backup!"
when: not forgejo_dir.stat.exists
# If port 2222 is changed here, it must also be adapted
# in the gitea config file (see application volume)!!
# in the forgejo config file (see application volume)!!
- name: Setup the docker container for gitea
docker_container:
name: gitea
name: forgejo
image: "codeberg.org/forgejo/forgejo:1.19"
pull: true
state: started
restart_policy: unless-stopped
detach: yes
ports:
- 127.0.0.1:{{ gitea_host_port }}:3000
- 127.0.0.1:{{ forgejo_host_port }}:3000
- 2222:2222
env:
TZ: "{{ timezone }}"
@ -71,14 +71,14 @@
USER_UID: "1000"
USER_GID: "1000"
volumes:
- "{{ data_dir }}/gitea:/data:rw"
- "{{ data_dir }}/forgejo:/data:rw"
- name: Setup proxy site gitea.n39.eu
include_role:
name: setup_http_site_proxy
vars:
site_name: "gitea.n39.eu"
proxy_port: "{{ gitea_host_port }}"
proxy_port: "{{ forgejo_host_port }}"
- name: Ensure apt-cacher container is running
docker_container:

View file

@ -29,7 +29,7 @@ influxdb_image: influxdb:2.4-alpine
influxdb_init_username: admin
influxdb_init_password: "{{ vault_influxdb_init_password }}"
gitea_host_port: 9091
forgejo_host_port: 9091
prosody_config_dir: "/etc/prosody"
prosody_data_dir: "{{ data_dir }}/prosody"