Clean up our Gitea role a little bit

This commit is contained in:
Salt 2020-05-01 14:01:53 -05:00
parent add7926db5
commit 18d4ea0b09
3 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,3 @@
# vim:ft=ansible:
gitea_root_directory: "/home/git/gitea-repositories"
gitea_app_name: "Ansible Gitea"

View File

@ -83,6 +83,13 @@
owner: "root"
group: "git"
path: "/etc/gitea"
- name: Create repositories directory
file:
state: directory
mode: "0700"
owner: git
group: git
path: "{{ gitea_root_directory }}"
- name: Check for config
stat: path="/etc/gitea/app.ini"
register: p

View File

@ -1,4 +1,4 @@
APP_NAME = 9iron Gitea
APP_NAME = {{ gitea_app_name }}
RUN_USER = git
RUN_MODE = prod
@ -32,7 +32,7 @@ DISABLE_GRAVATAR = true
ENABLE_FEDERATED_AVATAR = false
[repository]
ROOT = /home/git/gitea-repositories
ROOT = {{ gitea_root_directory }}
[security]
INTERNAL_TOKEN = {{ gitea_internal_token.stdout }}