.. | ||
defaults | ||
meta | ||
tasks | ||
templates | ||
README-FR.md | ||
README.md |
Ansible Role: Yunohost
Deploy Yunohost with Ansible!
Requirements
Yunohost needs to be installed on your server.
Role Variables
Default variables are available in default/main.yml
however it is necessary to override them according to your needs for ...
Backups management
ynh_backup:
scheduled: True
directory: "/data/backup"
scheduled_hour: "*"
scheduled_minute: "*/30"
scheduled_weekday: "*"
scheduled_month: "*"
system: True
apps: True
src_script: "templates/ynh_backup.sh.j2"
dest_script: "/usr/bin"
The backup task will allow to backup Yunohost applications and their data by setting up a cron job.
ynh_backup.scheduled
: to enable the Yunohost applications backup feature, set the value toTrue
.ynh_backup.directory
: the default backup folder is/home/yunohost.backup/archives
however you can choose to save the backups in another folder with this variable. In this case, in order to be able to restore the backups from the web interface, Yunohost automatically creates a symbolic link from the created archive to its default folder.ynh_backup.scheduled_[hour|minute|weekday|month]
: modifies the scheduling of the cron task. By default it will run every day of the year at 1am. For more information about cron time settings, this tool can be useful: https://crontab.guru/.ynh_backup.system
: is mandatory. Enables automatic backup of the Yunohost system by setting the value toTrue
.ynh_backup.apps
: est obligatoire. Enables automatic backup of Yunohost applications by setting the value toTrue
.src_script
: this is the absolute path where the template file is located on the machine running Ansible. By default is will be stored intemplates/ynh_backup.sh.j2
.dest_script
: this is the directory where the template file will be stored. By default is will be stored in/usr/local/bin
. The script is namedynh_backup.sh
.
Dependencies
None.
Example Playbook
---
- name: Configure Yunohost backups
hosts: all
become: True
collections:
- lydra.yunohost
roles:
- ynh_backup
License
ansible-yunohost is maintained by Lydra and released under the GPL3 license.