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

23 lines
583 B
YAML
Raw Normal View History

---
- 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' }
2023-11-21 23:00:10 +01:00
- { src: 'config.yml', dest: 'config.yml' }
register: gitea_copy_templates_results
- name: Update and restart container
community.docker.docker_compose:
project_src: gitea
state: present
pull: true
restarted: "{{ gitea_copy_templates_results.changed }}"
become: true