Alan Orth
b512a7f765
According the the Debian docs for third-party repositories we must create this manually on distros before Debian 12 and Ubuntu 22.04. This is due to changes in apt-secure and the deprecation of apt-key. See: https://wiki.debian.org/DebianRepository/UseThirdParty
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
---
|
|
|
|
- name: Configure Debian packages
|
|
block:
|
|
# Create directory for third-party package signing keys. Required on distros
|
|
# older than Debian 12 / Ubuntu 22.04.
|
|
#
|
|
# See: https://wiki.debian.org/DebianRepository/UseThirdParty
|
|
- name: Create /etc/apt/keyrings
|
|
file:
|
|
path: /etc/apt/keyrings
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
state: directory
|
|
when: ansible_distribution_major_version is version('12', '<')
|
|
|
|
- name: Configure apt mirror
|
|
ansible.builtin.template: src=sources.list.j2 dest=/etc/apt/sources.list owner=root group=root mode=0644
|
|
when: ansible_architecture != 'armv7l'
|
|
|
|
- name: Set fact for base packages
|
|
ansible.builtin.set_fact:
|
|
base_packages:
|
|
- git
|
|
- git-lfs
|
|
- tmux
|
|
- iotop
|
|
- htop
|
|
- strace
|
|
- cron-apt
|
|
- safe-rm
|
|
- debian-goodies
|
|
- mosh
|
|
- python3-pycurl # for ansible's apt_repository
|
|
- vim
|
|
- unzip
|
|
- apt-transport-https # for https support in apt
|
|
- gnupg2
|
|
- zstd
|
|
- rsync
|
|
- lsof
|
|
|
|
- name: Install base packages
|
|
ansible.builtin.apt: name={{ base_packages }} state=present cache_valid_time=3600
|
|
|
|
- name: Configure cron-apt
|
|
ansible.builtin.import_tasks: cron-apt.yml
|
|
tags: cron-apt
|
|
|
|
- name: Install tarsnap
|
|
ansible.builtin.import_tasks: tarsnap.yml
|
|
tags: packages
|
|
|
|
# vim: set sw=2 ts=2:
|