Alan Orth
ffe7a872dd
According to Ansible we can use yes, true, True, "or any quoted st- ring" for a boolean true, but ansible-lint wants us to use either true or false. See: https://chronicler.tech/red-hat-ansible-yes-no-and/
25 lines
812 B
YAML
25 lines
812 B
YAML
---
|
|
- name: Add Tarsnap apt mirror
|
|
ansible.builtin.template: src=tarsnap_sources.list.j2 dest=/etc/apt/sources.list.d/tarsnap.list owner=root group=root mode=0644
|
|
register: add_tarsnap_apt_repository
|
|
when: ansible_architecture != 'armv7l'
|
|
|
|
- name: Add GPG key for Tarsnap
|
|
ansible.builtin.apt_key: id=0xBF75EEAB040E447C url=https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc state=present
|
|
register: add_tarsnap_apt_key
|
|
|
|
- name: Update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
when:
|
|
add_tarsnap_apt_key is changed or
|
|
add_tarsnap_apt_repository is changed
|
|
|
|
- name: Install tarsnap
|
|
ansible.builtin.apt: pkg=tarsnap cache_valid_time=3600
|
|
|
|
- name: Copy tarsnaprc
|
|
ansible.builtin.copy: src=tarsnaprc dest=/root/.tarsnaprc owner=root group=root mode=0600
|
|
|
|
# vim: set sw=2 ts=2:
|