Git: Finish moving to forgejo and update forgejo

This commit is contained in:
Florian RICHER 2024-10-27 18:57:36 +01:00
parent cae68d9a46
commit 1d34a9d71c
5 changed files with 6 additions and 6 deletions

21
roles/git/tasks/base.yml Normal file
View file

@ -0,0 +1,21 @@
---
- name: Check git directory exist
ansible.builtin.file:
path: git
state: directory
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "git/{{ 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: git
state: present
pull: always
become: true