|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- _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
|