pottwal: Fix indentation
Please yamllint.
Fixes: 3aced1fe46
("Install gitea via ansible")
This commit is contained in:
parent
b1b3382728
commit
be09ef57f6
1 changed files with 40 additions and 40 deletions
80
pottwal.yml
80
pottwal.yml
|
@ -28,48 +28,48 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Check if gitea data dir exists
|
- name: Check if gitea data dir exists
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "/srv/data/gitea"
|
path: "/srv/data/gitea"
|
||||||
register: gitea_dir
|
register: gitea_dir
|
||||||
- name: Fail if gitea data dir does not exist
|
- name: Fail if gitea data dir does not exist
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "Gitea data dir is missing, please restore from the backup!"
|
msg: "Gitea data dir is missing, please restore from the backup!"
|
||||||
when: not gitea_dir.stat.exists
|
when: not gitea_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 gitea 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: gitea
|
||||||
image: "gitea/gitea:1.15.10"
|
image: "gitea/gitea:1.15.10"
|
||||||
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:{{ gitea_host_port }}:3000
|
||||||
- "{{ gitea_host_port }}:3000"
|
- "{{ gitea_host_port }}:3000"
|
||||||
- 2222:2222
|
- 2222:2222
|
||||||
env:
|
env:
|
||||||
APP_NAME="Netz39 Gitea"
|
APP_NAME="Netz39 Gitea"
|
||||||
RUN_MODE="prod"
|
RUN_MODE="prod"
|
||||||
SSH_DOMAIN="gitea.n39.eu"
|
SSH_DOMAIN="gitea.n39.eu"
|
||||||
SSH_PORT="2222"
|
SSH_PORT="2222"
|
||||||
SSH_START_SERVER="false"
|
SSH_START_SERVER="false"
|
||||||
ROOT_URL="https://gitea.n39.eu"
|
ROOT_URL="https://gitea.n39.eu"
|
||||||
DISABLE_REGISTRATION="true"
|
DISABLE_REGISTRATION="true"
|
||||||
USER_UID=1000
|
USER_UID=1000
|
||||||
USER_GID=1000
|
USER_GID=1000
|
||||||
volumes:
|
volumes:
|
||||||
- "/srv/data/gitea:/data:rw"
|
- "/srv/data/gitea:/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: "{{ gitea_host_port }}"
|
||||||
|
|
||||||
- name: Ensure apt-cacher container is running
|
- name: Ensure apt-cacher container is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
Loading…
Reference in a new issue