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: home_assistant, tags: ["home_assistant"] }
|
||||||
- { role: n8n, tags: ["n8n"] }
|
- { role: n8n, tags: ["n8n"] }
|
||||||
# - { role: matrix, tags: ["matrix"] }
|
# - { role: matrix, tags: ["matrix"] }
|
||||||
- { role: gitea, tags: ["gitea"] }
|
- { role: git, tags: ["git"] }
|
||||||
- { role: ryot, tags: ["ryot"] }
|
- { role: ryot, tags: ["ryot"] }
|
||||||
- { role: iptables, tags: ["iptables"] }
|
- { role: iptables, tags: ["iptables"] }
|
||||||
- { role: borg, tags: ["borg"] }
|
- { role: borg, tags: ["borg"] }
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Check gitea directory exist
|
- name: Check git directory exist
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: gitea
|
path: git
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Copy template conf
|
- name: Copy template conf
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "gitea/{{ item.dest }}"
|
dest: "git/{{ item.dest }}"
|
||||||
loop:
|
loop:
|
||||||
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
|
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
|
||||||
- { src: 'config.yml', dest: 'config.yml' }
|
- { src: 'config.yml', dest: 'config.yml' }
|
||||||
|
|
||||||
- name: Update and restart container
|
- name: Update and restart container
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: gitea
|
project_src: git
|
||||||
state: present
|
state: present
|
||||||
pull: always
|
pull: always
|
||||||
become: true
|
become: true
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: codeberg.org/forgejo/forgejo:8
|
image: codeberg.org/forgejo/forgejo:9
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
Loading…
Reference in a new issue