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:
commit
d94f5a2882
2 changed files with 12 additions and 12 deletions
|
@ -37,27 +37,27 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Check if gitea data dir exists
|
- name: Check if forgejo data dir exists
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ data_dir }}/gitea"
|
path: "{{ data_dir }}/forgejo"
|
||||||
register: gitea_dir
|
register: forgejo_dir
|
||||||
- name: Fail if gitea data dir does not exist
|
- name: Fail if forgejo data dir does not exist
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "Gitea data dir is missing, please restore from the backup!"
|
msg: "Forgejo data dir is missing, please restore from the backup!"
|
||||||
when: not gitea_dir.stat.exists
|
when: not forgejo_dir.stat.exists
|
||||||
|
|
||||||
# If port 2222 is changed here, it must also be adapted
|
# 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
|
- name: Setup the docker container for gitea
|
||||||
docker_container:
|
docker_container:
|
||||||
name: gitea
|
name: forgejo
|
||||||
image: "codeberg.org/forgejo/forgejo:1.19"
|
image: "codeberg.org/forgejo/forgejo:1.19"
|
||||||
pull: true
|
pull: true
|
||||||
state: started
|
state: started
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
detach: yes
|
detach: yes
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:{{ gitea_host_port }}:3000
|
- 127.0.0.1:{{ forgejo_host_port }}:3000
|
||||||
- 2222:2222
|
- 2222:2222
|
||||||
env:
|
env:
|
||||||
TZ: "{{ timezone }}"
|
TZ: "{{ timezone }}"
|
||||||
|
@ -71,14 +71,14 @@
|
||||||
USER_UID: "1000"
|
USER_UID: "1000"
|
||||||
USER_GID: "1000"
|
USER_GID: "1000"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ data_dir }}/gitea:/data:rw"
|
- "{{ data_dir }}/forgejo:/data:rw"
|
||||||
|
|
||||||
- name: Setup proxy site gitea.n39.eu
|
- name: Setup proxy site gitea.n39.eu
|
||||||
include_role:
|
include_role:
|
||||||
name: setup_http_site_proxy
|
name: setup_http_site_proxy
|
||||||
vars:
|
vars:
|
||||||
site_name: "gitea.n39.eu"
|
site_name: "gitea.n39.eu"
|
||||||
proxy_port: "{{ gitea_host_port }}"
|
proxy_port: "{{ forgejo_host_port }}"
|
||||||
|
|
||||||
- name: Ensure apt-cacher container is running
|
- name: Ensure apt-cacher container is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
|
@ -29,7 +29,7 @@ influxdb_image: influxdb:2.4-alpine
|
||||||
influxdb_init_username: admin
|
influxdb_init_username: admin
|
||||||
influxdb_init_password: "{{ vault_influxdb_init_password }}"
|
influxdb_init_password: "{{ vault_influxdb_init_password }}"
|
||||||
|
|
||||||
gitea_host_port: 9091
|
forgejo_host_port: 9091
|
||||||
|
|
||||||
prosody_config_dir: "/etc/prosody"
|
prosody_config_dir: "/etc/prosody"
|
||||||
prosody_data_dir: "{{ data_dir }}/prosody"
|
prosody_data_dir: "{{ data_dir }}/prosody"
|
||||||
|
|
Loading…
Reference in a new issue