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:
parent
0ffd14ccf0
commit
1127d83778
3 changed files with 6 additions and 0 deletions
|
@ -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_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
|
||||
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).
|
||||
|
|
|
@ -87,4 +87,5 @@ gitea_repo_indexer_max_file_size: 1048576
|
|||
|
||||
gitea_extra_config: ""
|
||||
|
||||
gitea_backup_on_upgrade: false
|
||||
gitea_backup_location: "{{ gitea_home }}/backups/"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
- name: backup gitea before update
|
||||
include_tasks: backup.yml
|
||||
when: gitea_backup_on_upgrade|bool
|
||||
|
||||
- name: install or update gitea
|
||||
include_tasks: install.yml
|
||||
|
|
Loading…
Reference in a new issue