|
|
@@ -1,5 +1,5 @@ |
|
|
|
_gitea_local_facts: |
|
|
|
database_password: "{% if not ansible_local.gitea.database_password is defined %}{{ lookup('password', '/dev/null length=15 chars=ascii_letters') }}{% else %}{{ ansible_local.gitea.database_password }}{% endif %}" |
|
|
|
database_password: "{% if not ansible_local.gitea.database_password is defined %}{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}{% else %}{{ ansible_local.gitea.database_password }}{% endif %}" |
|
|
|
|
|
|
|
_gitea_nginx_vhosts: |
|
|
|
- name: gitea |
|
|
@@ -45,11 +45,24 @@ _gitea_config: |
|
|
|
|
|
|
|
- section: database |
|
|
|
option: DB_TYPE |
|
|
|
value: sqlite3 |
|
|
|
value: postgres |
|
|
|
|
|
|
|
- section: database |
|
|
|
option: PATH |
|
|
|
value: "/var/lib/gitea/data/gitea.db" |
|
|
|
option: HOST |
|
|
|
value: localhost |
|
|
|
#value: "/run/postgresql/" |
|
|
|
|
|
|
|
- section: database |
|
|
|
option: NAME |
|
|
|
value: "{{gitea_db_name}}" |
|
|
|
|
|
|
|
- section: database |
|
|
|
option: USER |
|
|
|
value: "{{gitea_db_user}}" |
|
|
|
|
|
|
|
- section: database |
|
|
|
option: PASSWD |
|
|
|
value: "{{gitea_db_pass}}" |
|
|
|
|
|
|
|
- section: log |
|
|
|
option: ROOT_PATH |
|
|
|