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

20 lines
534 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
become: yes
ansible.builtin.apt:
name: borgbackup
state: present
when:
- borgbackup_passphrase is defined
- borgbackup_repo is defined
- borgbackup_hostname is defined
- ansible_distribution_release != 'stretch'