Clean up our Gitea role a little bit
This commit is contained in:
parent
add7926db5
commit
18d4ea0b09
3
roles/gitea/defaults/main.yml
Normal file
3
roles/gitea/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
# vim:ft=ansible:
|
||||
gitea_root_directory: "/home/git/gitea-repositories"
|
||||
gitea_app_name: "Ansible Gitea"
|
@ -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
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user