From 37582abfe1115dfc5cc8926412d7d3da982d517d Mon Sep 17 00:00:00 2001 From: Jeltz Date: Tue, 16 Mar 2021 13:47:14 +0100 Subject: [PATCH] Remove useless tasks from borgmatic_client --- roles/borgbackup_client/tasks/main.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/roles/borgbackup_client/tasks/main.yml b/roles/borgbackup_client/tasks/main.yml index f96b9a0..728d253 100644 --- a/roles/borgbackup_client/tasks/main.yml +++ b/roles/borgbackup_client/tasks/main.yml @@ -12,19 +12,8 @@ - src: apt/preferences.j2 dest: /etc/apt/preferences.d/borgmatic-bullseye when: - - ansible_distribution == "Debian" - - ansible_distribution_major_version | int <= 10 - -- name: Don't pin borgmatic if we are on bullseye - file: - path: "/etc/apt/{{ item }}" - state: absent - loop: - - sources.list.d/bullseye.list - - preferences.d/borgmatic-bullseye - when: - - ansible_distribution == "Debian" - - ansible_distribution_release == "bullseye" + - "ansible_distribution == 'Debian'" + - "ansible_distribution_major_version in ('stretch', 'buster')" - name: Install borgmatic apt: @@ -119,12 +108,6 @@ state: started enabled: true -- name: Start and enable borgmatic service - systemd: - name: borgmatic.service - state: started - enabled: true - - include_role: name: update_motd vars: