Fix apt sources list for debian bookworm

This commit is contained in:
Pim Kunis 2023-06-11 23:29:50 +02:00
parent f289e3882c
commit b3df127475
5 changed files with 19 additions and 26 deletions

12
roles/common/sources.list Normal file
View file

@ -0,0 +1,12 @@
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
# llvm
deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main

View file

@ -1,9 +1,8 @@
- name: Enable non-free packages
- name: Set APT sources
become: true
replace:
path: "/etc/apt/sources.list"
regexp: "^(.*main.*?)( contrib non-free)?$"
replace: '\1 contrib non-free'
copy:
src: sources.list
dest: /etc/apt/sources.list
- name: APT upgrade
become: true
apt: