ansible-role-server/tasks/borgbackup-Debian.yml

20 lines
518 B
YAML
Raw Normal View History

---
# Server/Borgbackup: Install and Setup Borgbackup Backup Crobjob - Default Debian Version
# Variables (must be set!):
# - borgbackup_passhrase
# - borgbackup_repo
# - borgbackup_hostname
# For all other Debian versions, simply install borgbackup
- name: borgbackup - Install borgbackup
become: yes
apt:
name: borgbackup
state: present
when:
- borgbackup_passphrase is defined
- borgbackup_repo is defined
- borgbackup_hostname is defined
- ansible_distribution_release != 'stretch'