add gitea

This commit is contained in:
Pim Kunis 2022-12-29 12:32:46 +01:00
parent e7da26bcaa
commit 0b60fba148
11 changed files with 218 additions and 8 deletions

View file

@ -0,0 +1,31 @@
- name: Create app directory
file:
path: /apps/gitea
state: directory
- name: Copy Docker Compose script
copy:
src: "{{ role_path }}/files/docker-compose.yml"
dest: /apps/gitea/docker-compose.yml
- name: Create data directory
file:
path: /data/gitea
state: directory
owner: 1000
group: 1000
- name: Copy conf directory
file:
path: /apps/gitea/conf
state: directory
owner: 1000
group: 1000
- name: Copy app.ini
template:
src: "{{ role_path }}/files/app.ini"
dest: /apps/gitea/conf/app.ini
register: config
- name: Start the Docker Compose
community.docker.docker_compose:
project_src: /apps/gitea
pull: true
remove_orphans: true
restarted: "{{ config.changed }}"