Jannik Beyerstedt
a0ac0a67a7
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.
20 lines
534 B
YAML
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
|