From 1d34a9d71ce196a3f3b3056b3b02274df1d7dea0 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 27 Oct 2024 18:57:36 +0100 Subject: [PATCH] Git: Finish moving to forgejo and update forgejo --- playbook.yml | 2 +- roles/{gitea => git}/tasks/base.yml | 8 ++++---- roles/{gitea => git}/tasks/main.yml | 0 roles/{gitea => git}/templates/config.yml | 0 roles/{gitea => git}/templates/docker-compose.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename roles/{gitea => git}/tasks/base.yml (77%) rename roles/{gitea => git}/tasks/main.yml (100%) rename roles/{gitea => git}/templates/config.yml (100%) rename roles/{gitea => git}/templates/docker-compose.yml (97%) diff --git a/playbook.yml b/playbook.yml index d612d24..252b86b 100644 --- a/playbook.yml +++ b/playbook.yml @@ -16,7 +16,7 @@ - { role: home_assistant, tags: ["home_assistant"] } - { role: n8n, tags: ["n8n"] } # - { role: matrix, tags: ["matrix"] } - - { role: gitea, tags: ["gitea"] } + - { role: git, tags: ["git"] } - { role: ryot, tags: ["ryot"] } - { role: iptables, tags: ["iptables"] } - { role: borg, tags: ["borg"] } diff --git a/roles/gitea/tasks/base.yml b/roles/git/tasks/base.yml similarity index 77% rename from roles/gitea/tasks/base.yml rename to roles/git/tasks/base.yml index 63c138d..59c1d62 100644 --- a/roles/gitea/tasks/base.yml +++ b/roles/git/tasks/base.yml @@ -1,21 +1,21 @@ --- -- name: Check gitea directory exist +- name: Check git directory exist ansible.builtin.file: - path: gitea + path: git state: directory - name: Copy template conf ansible.builtin.template: src: "{{ item.src }}" - dest: "gitea/{{ item.dest }}" + 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: gitea + project_src: git state: present pull: always become: true \ No newline at end of file diff --git a/roles/gitea/tasks/main.yml b/roles/git/tasks/main.yml similarity index 100% rename from roles/gitea/tasks/main.yml rename to roles/git/tasks/main.yml diff --git a/roles/gitea/templates/config.yml b/roles/git/templates/config.yml similarity index 100% rename from roles/gitea/templates/config.yml rename to roles/git/templates/config.yml diff --git a/roles/gitea/templates/docker-compose.yml b/roles/git/templates/docker-compose.yml similarity index 97% rename from roles/gitea/templates/docker-compose.yml rename to roles/git/templates/docker-compose.yml index 1710acb..5b23510 100644 --- a/roles/gitea/templates/docker-compose.yml +++ b/roles/git/templates/docker-compose.yml @@ -1,6 +1,6 @@ services: web: - image: codeberg.org/forgejo/forgejo:8 + image: codeberg.org/forgejo/forgejo:9 environment: - USER_UID=1000 - USER_GID=1000