Replace gitlab by gitea (Reduce RAM and CPU Usage)

This commit is contained in:
Florian RICHER 2023-10-15 21:06:26 +02:00
parent 11a4ecd6d5
commit 504e2e4b4c
4 changed files with 72 additions and 1 deletions

View file

@ -0,0 +1,22 @@
---
- 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' }
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

View file

@ -0,0 +1,4 @@
---
- ansible.builtin.import_tasks: base.yml
name: base