feat: add ansible tags to forgejo tasks
This commit is contained in:
parent
37fd91a24d
commit
6db795906d
1 changed files with 5 additions and 1 deletions
|
@ -42,14 +42,16 @@
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ data_dir }}/forgejo"
|
path: "{{ data_dir }}/forgejo"
|
||||||
register: forgejo_dir
|
register: forgejo_dir
|
||||||
|
tags: ["forgejo"]
|
||||||
- name: Fail if forgejo data dir does not exist
|
- name: Fail if forgejo data dir does not exist
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "Forgejo data dir is missing, please restore from the backup!"
|
msg: "Forgejo data dir is missing, please restore from the backup!"
|
||||||
when: not forgejo_dir.stat.exists
|
when: not forgejo_dir.stat.exists
|
||||||
|
tags: ["forgejo"]
|
||||||
|
|
||||||
# If port 2222 is changed here, it must also be adapted
|
# If port 2222 is changed here, it must also be adapted
|
||||||
# in the forgejo 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 forgejo
|
||||||
docker_container:
|
docker_container:
|
||||||
name: forgejo
|
name: forgejo
|
||||||
image: "{{ forgejo_image }}"
|
image: "{{ forgejo_image }}"
|
||||||
|
@ -73,6 +75,7 @@
|
||||||
USER_GID: "1000"
|
USER_GID: "1000"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ data_dir }}/forgejo:/data:rw"
|
- "{{ data_dir }}/forgejo:/data:rw"
|
||||||
|
tags: ["forgejo"]
|
||||||
|
|
||||||
- name: Setup proxy site "{{ forgejo_domain_name }}"
|
- name: Setup proxy site "{{ forgejo_domain_name }}"
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -80,6 +83,7 @@
|
||||||
vars:
|
vars:
|
||||||
site_name: "{{ forgejo_domain_name }}"
|
site_name: "{{ forgejo_domain_name }}"
|
||||||
proxy_port: "{{ forgejo_host_port }}"
|
proxy_port: "{{ forgejo_host_port }}"
|
||||||
|
tags: ["forgejo"]
|
||||||
|
|
||||||
- name: Ensure apt-cacher container is running
|
- name: Ensure apt-cacher container is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
Loading…
Reference in a new issue