Merge branch '68-build-update-borg-ansible-role-to-v0-9-3' into 'main'
Resolve "build: update Borg Ansible role to v0.9.3" Closes #68 See merge request lydra/yunohost/ansible-yunohost!48
This commit is contained in:
commit
60b6b3d30c
8 changed files with 58 additions and 35 deletions
16
CHANGELOG.md
16
CHANGELOG.md
|
@ -6,6 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
||||
and the commits message folow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
|
||||
|
||||
## [[1.1.1] - 2022-09-05](https://lab.frogg.it/lydra/yunohost/ansible-yunohost/-/releases/1.1.1)
|
||||
|
||||
### Added
|
||||
|
||||
- In role `ynh_backup`:
|
||||
- Added Ansible variable `m3nu_ansible_role_borgbackup_version`. The default version of the role is v0.9.3, but it can easily be changed by overriding the default value. You can check the releases of the role [here](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- Updated the readme files.
|
||||
|
||||
- In general readme:
|
||||
- Added restic tag.
|
||||
|
||||
### Fixed
|
||||
|
||||
- In role `ynh_backup`:
|
||||
- Ansible role Borg has been updated to v0.9.3 due to a bug that I discovered. More info [here](https://github.com/borgbase/ansible-role-borgbackup/issues/101).
|
||||
|
||||
## [[1.1.0] - 2022-08-30](https://lab.frogg.it/lydra/yunohost/ansible-yunohost/-/releases/1.1.0)
|
||||
|
||||
### Added
|
||||
|
|
|
@ -44,6 +44,7 @@ Ces tags sont applicables suivant les rôles.
|
|||
|smtp|Tâches liées aux paramètres de relais smtp de Yunohost.|
|
||||
|backup|Tâches liées aux sauvegardes de Yunohost en local.|
|
||||
|borg|Tâches liées aux sauvegardes avec BorgBackup.|
|
||||
|restic|Tâches liées aux sauvegardes avec Restic.|
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ These tags are applicable to roles.
|
|||
|smtp|Tasks related to Yunohost smtp relay settings.|
|
||||
|backup|Tasks related to local Yunohost backups.|
|
||||
|borg|Tasks related to backups with BorgBackup.|
|
||||
|restic|Tasks related to backups with Restic.|
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace: lydra
|
||||
name: yunohost
|
||||
version: 1.1.0
|
||||
version: 1.1.1
|
||||
readme: README.md
|
||||
authors:
|
||||
- Lydra (<support@lydra.fr>)
|
||||
|
|
|
@ -48,6 +48,7 @@ ynh_backup:
|
|||
|
||||
```yml
|
||||
ynh_borg_backup_scheduled: True
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.3"
|
||||
borg_source_directories: "{{ ynh_backup.directory }}"
|
||||
borg_repository: "/data/backup/borg_repository"
|
||||
borg_encryption_passphrase: "PLEASECHANGEME"
|
||||
|
@ -62,6 +63,7 @@ ynh_ssh_borg_command: "ssh_command: ssh -p 7410 -o StrictHostKeychecking=n
|
|||
```
|
||||
|
||||
- `ynh_borg_backup_scheduled` : Active / désactive la fonctionnalité de sauvegarde avec BorgBackup.
|
||||
- `m3nu_ansible_role_borgbackup_version` : Vous permet de spécifier la version du rôle Ansible Borg Backup que vous souhaitez utiliser. La version par défaut du rôle est v0.9.3 mais vous pouvez vérifier les versions du rôle [ici](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- `ynh_borg_backup_remote_repo` : Active / désactive la fonctionnalité de sauvegarde sur un dépôt distant BorgBackup (tâches liées à la mise en place des clés SSH). Si vous activez cette fonctionnalité, vous aurez besoin d'utiliser les variables `borg_ssh_keys_src` et `borg_ssh_keys_dest`.
|
||||
- `borg_source_directories` : Liste des dossiers source à sauvegarder. Par défaut, il s'agit du dossier qui contient les sauvegardes faites par YunoHost.
|
||||
- `borg_repository` : Chemin complet vers le dépôt Borg. Possibilité de donner une liste de dépôts pour sauvegarder les données dans plusieurs endroits.
|
||||
|
|
|
@ -48,6 +48,7 @@ ynh_backup:
|
|||
|
||||
```yml
|
||||
ynh_borg_backup_scheduled: True
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.3"
|
||||
borg_source_directories: "{{ ynh_backup.directory }}"
|
||||
borg_repository: "/data/backup/borg_repository"
|
||||
borg_encryption_passphrase: "PLEASECHANGEME"
|
||||
|
@ -62,6 +63,7 @@ ynh_ssh_borg_command: "ssh_command: ssh -p 7410 -o StrictHostKeychecking=n
|
|||
```
|
||||
|
||||
- `ynh_borg_backup_scheduled`: Enable / disable the backup feature with BorgBackup.
|
||||
- `m3nu_ansible_role_borgbackup_version`: Allows you to specify which version of the Borg Backup Ansible role you want to use. The default version of the role is v0.9.3 but you can check the releases of the role [here](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- `ynh_borg_backup_remote_repo`: Enable / disable the backup functionality on a BorgBackup remote repository (tasks related to SSH keys setup). If you enable this feature, then you will need to use `borg_ssh_keys_src` and `borg_ssh_keys_dest` variables.
|
||||
- `borg_source_directories`: List of source folders to back up. By default, this is the folder in which YunoHost local backups are located.
|
||||
- `borg_repository`: Full path to the Borg repository. Possibility to give a list of repositories to save data in several places.
|
||||
|
|
|
@ -24,6 +24,7 @@ ynh_backup:
|
|||
|
||||
# Variables for YunoHost BorgBackup
|
||||
ynh_borg_backup_scheduled: False
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.3"
|
||||
borg_source_directories:
|
||||
- "/home/yunohost.backup"
|
||||
borg_repository: "/data/backup/borg_repository"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# #
|
||||
#-----------------------------------------------------------------------------#
|
||||
- name: Download BorgBackup role on localhost
|
||||
ansible.builtin.command: ansible-galaxy install m3nu.ansible_role_borgbackup,v0.9.0 -p "{{ _ansible_role_directory }}"
|
||||
ansible.builtin.command: ansible-galaxy install m3nu.ansible_role_borgbackup,"{{ m3nu_ansible_role_borgbackup_version }}" -p "{{ _ansible_role_directory }}"
|
||||
delegate_to: localhost
|
||||
become: False
|
||||
tags:
|
||||
|
|
Loading…
Reference in a new issue