_local_facts: database_password: "{% if not ansible_local[role_name].database_password is defined %}{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}{% else %}{{ ansible_local[role_name].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: postgres - section: database 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 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