rsnapshot
rsnapshot
Ansible role. Install and configure rsnapshot.
Feel free to share your feedback and report issues.
Requirements and dependencies
Roles
- vbotka.ansible_lib
Collections
- community.general
Role Variables
See the defaults and examples in vars.
By default there are no backup points defined by variables rsnapshot_backup_points and rsnapshot_backup_points_test. At least one backup point must be defined. Otherwise rsnapshot will fail with the error:
ERROR: At least one backup point must be set. rsnapshot can not continue.
Workflow
Install role
shell> ansible-galaxy install vbotka.rsnapshot
Create playbook and inventory
shell> cat rsnapshot.yml
- hosts: webserver
roles:
- vbotka.rsnapshot
Test syntax
shell> ansible-playbook rsnapshot.yml --syntax-check
Install packages
shell> ansible-playbook rsnapshot.yml -t rsnapshot_pkg -e rsnapshot_install=true
Dry-run the play and display changes
ansible-playbook rsnapshot.yml --check --diff
Run the play
ansible-playbook rsnapshot.yml
Ansible lint
Use the configuration file .ansible-lint.local when running ansible-lint. Some rules might be disabled and some warnings might be ignored. See the notes in the configuration file.
shell> ansible-lint -c .ansible-lint.local
License
Author Information
Install
ansible-galaxy install vbotka/ansible-rsnapshot
License
bsd-2-clause
Downloads
105
Owner