vbotka.rsnapshot
rsnapshot
This is an Ansible role to install and set up rsnapshot.
You can give feedback and report issues.
Requirements and Dependencies
Roles
- vbotka.ansible_lib
Collections
- community.general
Role Variables
Check the default values and examples in the vars section.
Initially, there are no backup points set by the variables rsnapshot_backup_points and rsnapshot_backup_points_test. You must define at least one backup point. If not, rsnapshot will give this error:
ERROR: At least one backup point must be set. rsnapshot can not continue.
Workflow
- Install the role:
shell> ansible-galaxy install vbotka.rsnapshot
- Create a playbook and an inventory file:
shell> cat rsnapshot.yml
- hosts: webserver
roles:
- vbotka.rsnapshot
- Check the syntax:
shell> ansible-playbook rsnapshot.yml --syntax-check
- Install the needed packages:
shell> ansible-playbook rsnapshot.yml -t rsnapshot_pkg -e rsnapshot_install=true
- Run a dry run to see what changes will be made:
shell> ansible-playbook rsnapshot.yml --check --diff
- Execute the playbook:
shell> ansible-playbook rsnapshot.yml
Ansible Lint
When running ansible-lint, use the configuration file .ansible-lint.local. Some rules may be turned off and some warnings may be ignored. Check the notes in the configuration file.
shell> ansible-lint -c .ansible-lint.local
License
Author Information
Installa
ansible-galaxy install vbotka.rsnapshot
Licenza
bsd-2-clause
Download
125
Proprietario