Remove useless tasks from borgmatic_client
This commit is contained in:
parent
96a498c6de
commit
37582abfe1
1 changed files with 2 additions and 19 deletions
|
@ -12,19 +12,8 @@
|
||||||
- src: apt/preferences.j2
|
- src: apt/preferences.j2
|
||||||
dest: /etc/apt/preferences.d/borgmatic-bullseye
|
dest: /etc/apt/preferences.d/borgmatic-bullseye
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- "ansible_distribution == 'Debian'"
|
||||||
- ansible_distribution_major_version | int <= 10
|
- "ansible_distribution_major_version in ('stretch', 'buster')"
|
||||||
|
|
||||||
- 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"
|
|
||||||
|
|
||||||
- name: Install borgmatic
|
- name: Install borgmatic
|
||||||
apt:
|
apt:
|
||||||
|
@ -119,12 +108,6 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: Start and enable borgmatic service
|
|
||||||
systemd:
|
|
||||||
name: borgmatic.service
|
|
||||||
state: started
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
- include_role:
|
- include_role:
|
||||||
name: update_motd
|
name: update_motd
|
||||||
vars:
|
vars:
|
||||||
|
|
Loading…
Reference in a new issue