Skip to content

Puppet-Finland/ansible-rsnapshot

 
 

Repository files navigation

rsnapshot

quality Build Status GitHub tag

Ansible role. Install and configure rsnapshot.

Feel free to share your feedback and report issues.

Contributions are welcome.

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

license

Author Information

Vladimir Botka

About

Ansible role. Install and configure rsnapshot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%