ansible/04_container_gitea.yaml

35 lines
1.0 KiB
YAML

---
- name: GITEA -- install
hosts: gitea@lxd.ansol.org
roles:
- { role: l3d.gitea, tags: gitea }
vars:
gitea_version: 1.20.5
gitea_home: /var/lib/gitea
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
gitea_enable_notify_mail: true
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
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>'