eddyhub.restic
ansible-restic
This Ansible role helps you to install and manage restic from https://github.com/restic/restic.
Installation
To install, run:
ansible-galaxy install eddyhub.restic
Requirements
There are no requirements for this role.
Role Variables
You can modify these default settings in the role:
# defaults file for ansible-restic
ansible_unit_test: false
restic_role_release: '0.0.1' # Version of the role
# Specify the version of restic to install
restic_version: 'latest'
# Platform architecture for restic
restic_platform: 'amd64'
# Name of the restic installation
restic_name: 'restic'
# Directory for installing restic
restic_install_directory: '/usr/local/bin'
# Owner of the restic files
restic_owner: 'root'
# Group for the restic files
restic_group: 'root'
# File permission settings
restic_mode: '4755'
Dependencies
No dependencies are needed to install this role.
Example Playbook
Here’s a simple playbook to install restic:
- name: Installing restic
hosts: all
sudo: yes
roles:
- role: eddyhub.restic
License
Copyright (c) 2017, Eduard Angold. All rights reserved.
You can share or use this software as long as you follow these rules:
- Keep the copyright notice and conditions in any source code you share.
- If you redistribute it in binary form, include the copyright notice and conditions in the documentation.
- You cannot use the name "ansible-restic" or the names of its contributors to promote products without permission.
This software is provided "as is," without any warranties. The authors are not responsible for any damages that may happen while using this software.
Author Information
Contact: eddyhub@users.noreply.github.com