Rename Gitea root directory

This commit is contained in:
Salt 2020-08-15 05:51:05 -05:00
parent d5c1d838e4
commit 590741d001
4 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@
tags: [ backups ] tags: [ backups ]
- role: gitea - role: gitea
vars: vars:
gitea_root_directory: "/cold/gitea-repositories/" gitea.root: "/cold/gitea-repositories/"
tags: [ web, gitea ] tags: [ web, gitea ]
- role: grafana - role: grafana
tags: [ web, grafana ] tags: [ web, grafana ]

View File

@ -1,5 +1,5 @@
# vim:ft=ansible: # vim:ft=ansible:
gitea_root_directory: "/home/git/gitea-repositories" gitea.root: "/home/git/gitea-repositories"
gitea.app_name: "Ansible Gitea" gitea.app_name: "Ansible Gitea"
gitea_push_create_user: "true" gitea_push_create_user: "true"
gitea_push_create_org: "false" gitea_push_create_org: "false"

View File

@ -90,7 +90,7 @@
mode: "0700" mode: "0700"
owner: git owner: git
group: git group: git
path: "{{ gitea_root_directory }}" path: "{{ gitea.root }}"
- name: Set up EFS mount - name: Set up EFS mount
block: block:
- name: Install required packages - name: Install required packages
@ -107,7 +107,7 @@
security_groups: [ "{{ gitea.efs.security_group }}" ] security_groups: [ "{{ gitea.efs.security_group }}" ]
register: efs register: efs
- name: Mount EFS - name: Mount EFS
path: "{{ gitea_root_directory }}" path: "{{ gitea.root }}"
src: "{{ efs.efs.filesystem_address }}" src: "{{ efs.efs.filesystem_address }}"
fstype: nfs4 fstype: nfs4
opts: "nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" opts: "nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport"

View File

@ -34,7 +34,7 @@ ENABLE_FEDERATED_AVATAR = false
[repository] [repository]
ENABLE_PUSH_CREATE_USER = {{ gitea_push_create_user }} ENABLE_PUSH_CREATE_USER = {{ gitea_push_create_user }}
ENABLE_PUSH_CREATE_ORG = {{ gitea_push_create_org }} ENABLE_PUSH_CREATE_ORG = {{ gitea_push_create_org }}
ROOT = {{ gitea_root_directory }} ROOT = {{ gitea.root }}
[security] [security]
INTERNAL_TOKEN = {{ gitea_internal_token.stdout }} INTERNAL_TOKEN = {{ gitea_internal_token.stdout }}