1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

make the backup on update optional

Documentation and introduction of the variable `gitea_backup_on_upgrade: false`
This commit is contained in:
L3D 2021-02-13 05:39:24 +01:00
parent 0ffd14ccf0
commit 1127d83778
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 6 additions and 0 deletions

View file

@ -162,6 +162,10 @@ As this will only deploy config files, fail2ban already has to be installed or o
* `gitea_repo_exclude_vendored`: Exclude vendored files from the index. Default: `true` * `gitea_repo_exclude_vendored`: Exclude vendored files from the index. Default: `true`
* `gitea_repo_indexer_max_file_size`: Maximum size of files to be indexed (in bytes). Default: `1048576` (1 MB) * `gitea_repo_indexer_max_file_size`: Maximum size of files to be indexed (in bytes). Default: `1048576` (1 MB)
### backup on upgrade
* `gitea_backup_on_upgrade`: Optionally a backup can be created with every update of gitea. Default: `false`
* `gitea_backup_location`: Where to store the gitea backup if one is created with this role. Default: `{{ gitea_home }}/backups/`
## Contributing ## Contributing
Don't hesitate to create a pull request, and when in doubt you can reach me on Don't hesitate to create a pull request, and when in doubt you can reach me on
Twitter [@thomas_maurice](https://twitter.com/thomas_maurice). Twitter [@thomas_maurice](https://twitter.com/thomas_maurice).

View file

@ -87,4 +87,5 @@ gitea_repo_indexer_max_file_size: 1048576
gitea_extra_config: "" gitea_extra_config: ""
gitea_backup_on_upgrade: false
gitea_backup_location: "{{ gitea_home }}/backups/" gitea_backup_location: "{{ gitea_home }}/backups/"

View file

@ -19,6 +19,7 @@
- name: backup gitea before update - name: backup gitea before update
include_tasks: backup.yml include_tasks: backup.yml
when: gitea_backup_on_upgrade|bool
- name: install or update gitea - name: install or update gitea
include_tasks: install.yml include_tasks: install.yml