|
- _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 %}"
-
- _gitea_nginx_vhosts:
- - name: gitea
- server_names:
- - "{{ gitea_server_name }}"
- locations:
- - location: /
- proxy_pass: http://localhost:3000
-
- _gitea_config:
-
- - section: null
- option: RUN_MODE
- value: prod
-
- - section: null
- option: APP_NAME
- value: "{{ gitea_app_name | default(gitea_server_name) }}"
-
- - section: server
- option: HTTP_ADDR
- value: "{{ gitea_http_addr }}"
-
- - section: server
- option: HTTP_PORT
- value: "{{ gitea_http_port }}"
-
- - section: server
- option: ROOT_URL
- value: "https://{{ gitea_server_name }}/"
-
- - section: server
- option: DOMAIN
- value: "{{ gitea_server_name }}"
-
- - section: server
- option: SSH_DOMAIN
- value: "{{ gitea_server_name }}"
-
- - section: repository
- option: ROOT
- value: /srv/git/repos
-
- - section: database
- option: DB_TYPE
- value: sqlite3
-
- - section: database
- option: PATH
- value: "/var/lib/gitea/data/gitea.db"
-
- - section: log
- option: ROOT_PATH
- value: /var/log/gitea
-
- # see: Support automatic installation via configuration management (ansible, puppet, chef, etc) #2324
- # https://github.com/go-gitea/gitea/issues/2324
- - section: security
- option: INSTALL_LOCK
- value: true
-
- - section: security
- option: DISABLE_GIT_HOOKS
- value: true
|