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"
|
owner: "root"
|
||||||
group: "git"
|
group: "git"
|
||||||
path: "/etc/gitea"
|
path: "/etc/gitea"
|
||||||
|
- name: Create repositories directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
mode: "0700"
|
||||||
|
owner: git
|
||||||
|
group: git
|
||||||
|
path: "{{ gitea_root_directory }}"
|
||||||
- name: Check for config
|
- name: Check for config
|
||||||
stat: path="/etc/gitea/app.ini"
|
stat: path="/etc/gitea/app.ini"
|
||||||
register: p
|
register: p
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
APP_NAME = 9iron Gitea
|
APP_NAME = {{ gitea_app_name }}
|
||||||
RUN_USER = git
|
RUN_USER = git
|
||||||
RUN_MODE = prod
|
RUN_MODE = prod
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ DISABLE_GRAVATAR = true
|
|||||||
ENABLE_FEDERATED_AVATAR = false
|
ENABLE_FEDERATED_AVATAR = false
|
||||||
|
|
||||||
[repository]
|
[repository]
|
||||||
ROOT = /home/git/gitea-repositories
|
ROOT = {{ gitea_root_directory }}
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
INTERNAL_TOKEN = {{ gitea_internal_token.stdout }}
|
INTERNAL_TOKEN = {{ gitea_internal_token.stdout }}
|
||||||
|
Loading…
Reference in New Issue
Block a user