[borgbackup-client] don't use ansible_lsb

certbot_on_virtu
_pollion 2021-01-01 19:22:46 +01:00
parent 34185b4866
commit 189885c7da
1 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,10 @@
loop:
- sources.list.d/bullseye.list
- preferences.d/borgmatic-bullseye
when: ansible_lsb.release | int <= 10
when:
- ansible_distribution == "Debian"
- ansible_distribution_major_version | int <= 10
- ansible_distribution_release != "bullseye"
- name: Install borgbackup
apt:
@ -25,7 +28,7 @@
state: directory
mode: 0700
owner: root
- name: Deploy ssh private key
template:
src: "borgmatic/id_ed25519_borg.j2"