Update gitea to new nas location
This commit is contained in:
@@ -11,6 +11,6 @@ ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass github-runne
|
|||||||
# gitea server
|
# gitea server
|
||||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass gitea.yaml
|
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass gitea.yaml
|
||||||
|
|
||||||
# gitea server
|
# graphana + prometheus
|
||||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass monitor.yaml
|
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass monitor.yaml
|
||||||
```
|
```
|
||||||
|
|||||||
+16
-3
@@ -9,10 +9,10 @@
|
|||||||
mounts:
|
mounts:
|
||||||
gitea_repos:
|
gitea_repos:
|
||||||
local: "/mnt/gitea-repos"
|
local: "/mnt/gitea-repos"
|
||||||
remote: "/volume1/gitea-repos"
|
remote: "/var/nfs/shared/gitea_repos"
|
||||||
gitea_backups:
|
gitea_backups:
|
||||||
local: "/mnt/gitea-backups"
|
local: "/mnt/gitea-backups"
|
||||||
remote: "/volume1/gitea-backups"
|
remote: "/var/nfs/shared/gitea_backups"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -45,6 +45,19 @@
|
|||||||
# update_cache: true
|
# update_cache: true
|
||||||
# become: true
|
# become: true
|
||||||
|
|
||||||
|
- name: Stop gitea services if running
|
||||||
|
community.docker.docker_compose_v2:
|
||||||
|
project_src: "{{ ansible_env.HOME }}/gitea/"
|
||||||
|
state: absent
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: Unmount NFS volumes before creating mountpoint directories
|
||||||
|
ansible.posix.mount:
|
||||||
|
path: "{{ item.value.local }}"
|
||||||
|
state: unmounted
|
||||||
|
loop: "{{ mounts | dict2items }}"
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Create mountpoint directories for gitea
|
- name: Create mountpoint directories for gitea
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.value.local }}"
|
path: "{{ item.value.local }}"
|
||||||
@@ -55,7 +68,7 @@
|
|||||||
|
|
||||||
- name: Mount an NFS volume for repositories
|
- name: Mount an NFS volume for repositories
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
src: "nas.localdomain:{{ item.value.remote }}"
|
src: "192.168.1.160:{{ item.value.remote }}"
|
||||||
path: "{{ item.value.local }}"
|
path: "{{ item.value.local }}"
|
||||||
opts: nfsvers=3,proto=tcp,rw
|
opts: nfsvers=3,proto=tcp,rw
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,8 @@ services:
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
# Gitea-supported vars for internal ownership/permissions
|
# Gitea-supported vars for internal ownership/permissions
|
||||||
- USER_UID=1027
|
- USER_UID=977
|
||||||
- USER_GID=65536
|
- USER_GID=988
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user