1
0
Fork 0
myserver-configuration/roles/gitea/tasks/base.yml

21 lines
No EOL
487 B
YAML

---
- name: Check gitea directory exist
ansible.builtin.file:
path: gitea
state: directory
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "gitea/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
- { src: 'config.yml', dest: 'config.yml' }
- name: Update and restart container
community.docker.docker_compose_v2:
project_src: gitea
state: present
pull: always
become: true