roles/common: Add tasks to install tarsnap
Now that Tarsnap has official packages this is one less thing that needs to be manually installed from source after bringing a machine up. See: http://mail.tarsnap.com/tarsnap-announce/msg00037.html
This commit is contained in:
parent
4afb29c06e
commit
d766c3dbbe
@ -23,4 +23,6 @@
|
|||||||
- include: cron-apt.yml
|
- include: cron-apt.yml
|
||||||
tags: cron-apt
|
tags: cron-apt
|
||||||
|
|
||||||
|
- include: tarsnap.yml
|
||||||
|
|
||||||
# vim: set sw=2 ts=2:
|
# vim: set sw=2 ts=2:
|
||||||
|
@ -46,4 +46,6 @@
|
|||||||
- include: cron-apt.yml
|
- include: cron-apt.yml
|
||||||
tags: cron-apt
|
tags: cron-apt
|
||||||
|
|
||||||
|
- include: tarsnap.yml
|
||||||
|
|
||||||
# vim: set sw=2 ts=2:
|
# vim: set sw=2 ts=2:
|
||||||
|
12
roles/common/tasks/tarsnap.yml
Normal file
12
roles/common/tasks/tarsnap.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
- name: Add Tarsnap apt mirror
|
||||||
|
template: src=tarsnap_sources.list.j2 dest=/etc/apt/sources.list.d/tarsnap.list owner=root group=root mode=0644
|
||||||
|
when: ansible_architecture != 'armv7l'
|
||||||
|
|
||||||
|
- name: Add GPG key for Tarsnap
|
||||||
|
apt_key: id=0x40B98B68F04DE775 url=https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc state=present
|
||||||
|
|
||||||
|
- name: Install tarsnap
|
||||||
|
apt: pkg=tarsnap
|
||||||
|
|
||||||
|
# vim: set sw=2 ts=2:
|
1
roles/common/templates/tarsnap_sources.list.j2
Normal file
1
roles/common/templates/tarsnap_sources.list.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
deb http://pkg.tarsnap.com/deb/{{ ansible_distribution_release }} ./
|
Loading…
Reference in New Issue
Block a user