Git: Finish moving to forgejo and update forgejo
This commit is contained in:
parent
cae68d9a46
commit
1d34a9d71c
5 changed files with 6 additions and 6 deletions
|
@ -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"] }
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue