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

View file

@ -1,9 +1,10 @@
# Personal Linux Setup
My current setup is [Debian Bullseye](https://www.debian.org/releases/bullseye/) with the [i3 window manager](https://i3wm.org/).
My current setup is [Debian Bookworm](https://www.debian.org/releases/bookworm/) with the [i3 window manager](https://i3wm.org/).
## Before installing
- `rm /usr/lib/python*/EXTERNALLY-MANAGED`
- `sudo apt-get install curl git python3-distutils`
- `export PATH=$PATH:~/.local/bin`
- [Install Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
@ -12,7 +13,6 @@ My current setup is [Debian Bullseye](https://www.debian.org/releases/bullseye/)
- thunderbird config (pretty hard to do, should just capture steps taken somewhere)
- firefox config? extensions? host own synchronizer?
- Daemon to restore wallpaper?
#### Neovim

View file

@ -1,19 +0,0 @@
- name: Setup system
hosts: self
roles:
- role: system
tags: [system]
- role: i3
tags: [i3]
- role: bash
tags: [bash]
- role: alacritty
tags: [alacritty]
- role: neovim
tags: [neovim]
- role: keepassxc
tags: [keepassxc]
- role: signal
tags: [signal]
- role: vscodium
tags: [vscodium]

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:

View file

@ -1,5 +1,6 @@
- name: Setup system
hosts: self
roles:
- role: system
tags: [system]