move from gitea to forgejo

This commit is contained in:
Pim Kunis 2023-01-06 15:45:21 +01:00
parent 16866e54ec
commit 5b31f5dddb
11 changed files with 64 additions and 64 deletions

View file

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