ansible-role-server/tasks/borgbackup-Debian.yml
Jannik Beyerstedt a0ac0a67a7 [TIDY] move when statements, fix whitespace
Having the when condition of a task at the top instead of bottom is
easiert to read. Also some spaces were another whitespace character on
accident.
2022-02-13 20:52:02 +01:00

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