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

21 lines
549 B
YAML

---
# 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
when:
- borgbackup_passphrase is defined
- borgbackup_repo is defined
- borgbackup_hostname is defined
- ansible_distribution_release != 'stretch'
become: true
ansible.builtin.apt:
name: borgbackup
state: present
diff: false