homelab/roles/gitea/tasks/main.yml
2022-05-24 21:15:10 -04:00

21 lines
491 B
YAML

- name: Create Gitea directory
file:
path: "{{ gitea_root }}"
state: directory
- name: Install Gitea's docker-compose file
template:
src: docker-compose.yml.j2
dest: "{{ gitea_root }}/docker-compose.yml"
- name: Install Gitea's docker-compose variables
template:
src: compose-env.j2
dest: "{{ gitea_root }}/.env"
- name: Start and enable Gitea service
service:
name: "{{ docker_compose_service }}@{{ gitea_name }}"
state: started
enabled: true