2017-02-07 16:28:35 +01:00
|
|
|
---
|
|
|
|
- name: Add Tarsnap apt mirror
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.template: src=tarsnap_sources.list.j2 dest=/etc/apt/sources.list.d/tarsnap.list owner=root group=root mode=0644
|
2019-03-17 16:29:15 +01:00
|
|
|
register: add_tarsnap_apt_repository
|
2017-02-07 16:28:35 +01:00
|
|
|
when: ansible_architecture != 'armv7l'
|
|
|
|
|
|
|
|
- name: Add GPG key for Tarsnap
|
2022-11-02 20:11:37 +01:00
|
|
|
ansible.builtin.apt_key: id=0xEED5E5A05BF422AC url=https://www.tarsnap.com/tarsnap-signing-key-2022.asc state=present
|
2019-03-17 16:29:15 +01:00
|
|
|
register: add_tarsnap_apt_key
|
2017-02-07 16:28:35 +01:00
|
|
|
|
2019-03-17 16:29:15 +01:00
|
|
|
- name: Update apt cache
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.apt:
|
2022-09-10 21:33:19 +02:00
|
|
|
update_cache: true
|
2019-03-17 16:29:15 +01:00
|
|
|
when:
|
|
|
|
add_tarsnap_apt_key is changed or
|
|
|
|
add_tarsnap_apt_repository is changed
|
|
|
|
|
2017-02-07 16:28:35 +01:00
|
|
|
- name: Install tarsnap
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.apt: pkg=tarsnap cache_valid_time=3600
|
2017-02-07 16:28:35 +01:00
|
|
|
|
2018-05-20 11:51:02 +02:00
|
|
|
- name: Copy tarsnaprc
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.copy: src=tarsnaprc dest=/root/.tarsnaprc owner=root group=root mode=0600
|
2018-05-20 11:51:02 +02:00
|
|
|
|
2017-02-07 16:28:35 +01:00
|
|
|
# vim: set sw=2 ts=2:
|