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:
Alan Orth 2017-02-07 07:28:35 -08:00
parent 4afb29c06e
commit d766c3dbbe
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
4 changed files with 17 additions and 0 deletions

View File

@ -23,4 +23,6 @@
- include: cron-apt.yml
tags: cron-apt
- include: tarsnap.yml
# vim: set sw=2 ts=2:

View File

@ -46,4 +46,6 @@
- include: cron-apt.yml
tags: cron-apt
- include: tarsnap.yml
# vim: set sw=2 ts=2:

View 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:

View File

@ -0,0 +1 @@
deb http://pkg.tarsnap.com/deb/{{ ansible_distribution_release }} ./