2019-03-16 12:51:32 +01:00
|
|
|
---
|
Improve ARM Support (#74)
* Gitea user should be a system user
* Improve installation system
* Download archive instead of binary
* Add checksum validation
* Add GPG check
* Add backup process before upgrading
* Improve ARM support
* Improve support for Vault Encrypted JWT tokens
* Fix spacing in gitea configuration template
When Gitea rewrite the configuration file (e.g.: the JWT token is not
set or doesn't fit their criteria), it'll align space on a per-section
basis in the .ini file.
If the template is not properly spaced, at the next Ansible run, you'll
have an enormous diff, hidding what the real changes are.
* add proper redhat/debian deps for molecule testing
* Gitea group should be a system group
* fix linting for CI
* Update CI and meta information for up-to-date tests and distros
* molecule: fix typo for redhat packages
* fix typo
* bump gitea version to 1.13.1
* Use Ubuntu keyservers to play nicely with everyone
* Update minimum required ansible version to 2.9.8
This is required for Ubuntu Focal, which comes with systemd >= 245
The Get Facts modules doesn't work well with it before the bugfix
introduced in 2.9.8
* Replace yes by True to please the linting
* Truthy values needs to be lower-case
* bump gitea version to 1.13.2
* perform gitea dump as gitea user
* need to set become to yes
* autogenerate JWT_SECRETS (#77)
* autogenerate JWT_SECRETS
Based on https://docs.gitea.io/en-us/command-line/#generate we will now autogenerate JWT_SECRETS if they are not defined.
In my opinion a much better idea than writing a value in the default config.
The check if the variables for the secrets are now 43 characters long i took out. Gitea generates itself suitable secrets, if the user given ones do not fit.
* drop ansible.builtin. syntax
* Update file permissions for "{{ gitea_home }}" (#75)
The file permissions for {{ gitea_home }} especially in conjunction with the recurse: true flag are on closer inspection very open to all and also have a +x set on files.
This should be done better. And I have done here now.
By the way: To improve the -x on normal files in his gitea installation this shell command was useful for me
```
find . -type f -exec chmod a-x {} \+;
find . -type f -exec chmod u=rwX {} \+;
```
* Bump cryptography from 3.2 to 3.3.2 (#79)
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.2 to 3.3.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/3.2...3.3.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Gitea user should be a system user
* Improve installation system
* Download archive instead of binary
* Add checksum validation
* Add GPG check
* Add backup process before upgrading
* Improve ARM support
* Fix spacing in gitea configuration template
When Gitea rewrite the configuration file (e.g.: the JWT token is not
set or doesn't fit their criteria), it'll align space on a per-section
basis in the .ini file.
If the template is not properly spaced, at the next Ansible run, you'll
have an enormous diff, hidding what the real changes are.
* add proper redhat/debian deps for molecule testing
* Gitea group should be a system group
* fix linting for CI
* Update CI and meta information for up-to-date tests and distros
* molecule: fix typo for redhat packages
* fix typo
* bump gitea version to 1.13.1
* Use Ubuntu keyservers to play nicely with everyone
* Update minimum required ansible version to 2.9.8
This is required for Ubuntu Focal, which comes with systemd >= 245
The Get Facts modules doesn't work well with it before the bugfix
introduced in 2.9.8
* Replace yes by True to please the linting
* Truthy values needs to be lower-case
* bump gitea version to 1.13.2
* perform gitea dump as gitea user
* need to set become to yes
* check-variables.yml doesn't exists anymore
Co-authored-by: L3D <l3d@c3woc.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 18:56:31 +01:00
|
|
|
gitea_go_arch_map:
|
|
|
|
i386: '386'
|
|
|
|
x86_64: 'amd64'
|
|
|
|
aarch64: 'arm64'
|
|
|
|
armv7l: 'arm-6'
|
|
|
|
armv6l: 'arm-6'
|
|
|
|
armv5l: 'arm-5'
|
|
|
|
|
|
|
|
gitea_arch: "{{ gitea_go_arch_map[ansible_architecture] | default(ansible_architecture) }}"
|
2023-01-26 22:35:10 +01:00
|
|
|
gitea_supported_forks: 'gitea and forgejo'
|
|
|
|
|
|
|
|
gitea_fork_variables:
|
|
|
|
files:
|
|
|
|
- "fork_{{ gitea_fork | lower }}.yml"
|
|
|
|
paths:
|
|
|
|
- 'vars'
|
2021-03-22 02:22:22 +01:00
|
|
|
|
2021-03-22 21:08:40 +01:00
|
|
|
gitea_variables:
|
|
|
|
files:
|
|
|
|
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
|
|
|
|
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
|
|
|
|
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
|
|
|
|
- "{{ ansible_distribution | lower }}.yml"
|
|
|
|
- "{{ ansible_os_family | lower }}.yml"
|
|
|
|
paths:
|
|
|
|
- 'vars'
|
|
|
|
|
2021-06-03 17:59:14 +02:00
|
|
|
transfer_custom_logo_logosvg:
|
|
|
|
files:
|
|
|
|
- "{{ gitea_custom_search }}/gitea_logo/logo.svg"
|
|
|
|
- "files/{{ inventory_hostname }}/gitea_logo/logo.svg"
|
|
|
|
- "files/{{ gitea_http_domain }}/gitea_logo/logo.svg"
|
|
|
|
- 'files/gitea_logo/logo.svg'
|
|
|
|
|
|
|
|
transfer_custom_logo_logopng:
|
|
|
|
files:
|
|
|
|
- "{{ gitea_custom_search }}/gitea_logo/logo.png"
|
|
|
|
- "files/{{ inventory_hostname }}/gitea_logo/logo.png"
|
|
|
|
- "files/{{ gitea_http_domain }}/gitea_logo/logo.png"
|
|
|
|
- 'files/gitea_logo/logo.png'
|
|
|
|
|
|
|
|
transfer_custom_logo_faviconpng:
|
|
|
|
files:
|
|
|
|
- "{{ gitea_custom_search }}/gitea_logo/favicon.png"
|
|
|
|
- "files/{{ inventory_hostname }}/gitea_logo/favicon.png"
|
|
|
|
- "files/{{ gitea_http_domain }}/gitea_logo/favicon.png"
|
|
|
|
- 'files/gitea_logo/favicon.png'
|
|
|
|
|
|
|
|
transfer_custom_logo_appletouchiconpng:
|
|
|
|
files:
|
|
|
|
- "{{ gitea_custom_search }}/gitea_logo/apple-touch-icon.png"
|
|
|
|
- "files/{{ inventory_hostname }}/gitea_logo/apple-touch-icon.png"
|
|
|
|
- "files/{{ gitea_http_domain }}/gitea_logo/apple-touch-icon.png"
|
|
|
|
- 'files/gitea_logo/apple-touch-icon.png'
|
|
|
|
|
2021-06-03 21:06:04 +02:00
|
|
|
transfer_custom_footer:
|
|
|
|
files:
|
|
|
|
- "{{ gitea_custom_search }}/gitea_footer/extra_links_footer.tmpl"
|
|
|
|
- "files/{{ inventory_hostname }}/gitea_footer/extra_links_footer.tmpl"
|
|
|
|
- "files/{{ gitea_http_domain }}/gitea_footer/extra_links_footer.tmpl"
|
|
|
|
- 'files/gitea_footer/extra_links_footer.tmpl'
|
|
|
|
- 'files/extra_links_footer.tmpl'
|
|
|
|
|
2024-01-12 00:50:37 +01:00
|
|
|
playbook_version_number: 54
|
2021-03-22 02:22:22 +01:00
|
|
|
playbook_version_path: 'do1jlr.gitea.version'
|