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