- 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
path: /data/gitea
owner: 1000
group: 1000
- name: Copy conf directory
path: /apps/gitea/conf
- name: Copy app.ini
template:
src: "{{ role_path }}/templates/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 }}"