ansible/04_container_gitea.yaml

35 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2022-03-01 23:30:08 +00:00
---
- name: GITEA -- install
2022-08-03 11:49:56 +00:00
hosts: gitea@lxd.ansol.org
2022-03-01 23:30:08 +00:00
roles:
2023-10-23 19:02:31 +00:00
- { role: l3d.gitea, tags: gitea }
2022-03-01 23:30:08 +00:00
vars:
2023-10-23 19:02:31 +00:00
gitea_version: 1.20.5
gitea_home: /var/lib/gitea
2022-03-01 23:30:08 +00:00
gitea_fqdn: 'git.ansol.org'
gitea_root_url: 'https://git.ansol.org'
gitea_http_listen: '0.0.0.0'
gitea_protocol: http
gitea_only_allow_external_registration: true
gitea_enable_captcha: false
2023-10-24 10:54:15 +00:00
gitea_enable_notify_mail: true
2022-03-01 23:30:08 +00:00
gitea_require_signin: false
gitea_show_registration_button: false
gitea_start_ssh: true
gitea_oauth2_extra_config: |
ENABLE_AUTO_REGISTRATION = true
USERNAME = email
ACCOUNT_LINKING = auto
gitea_extra_config: |
[server]
SSH_PORT = 22
SSH_LISTEN_PORT = 2222
SSH_USER = git
BUILTIN_SSH_SERVER_USER = git
2023-10-24 10:54:15 +00:00
gitea_mailer_enabled: true
gitea_mailer_protocol: smtp+starttls
gitea_mailer_smtp_addr: smtp.netureza.pt
gitea_mailer_user: '{{ smtp_username }}'
gitea_mailer_password: '{{ smtp_password }}'
gitea_mailer_from: '"git.ansol.org" <noreply@git.ansol.org>'