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 # 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 ## Before installing
- `rm /usr/lib/python*/EXTERNALLY-MANAGED`
- `sudo apt-get install curl git python3-distutils` - `sudo apt-get install curl git python3-distutils`
- `export PATH=$PATH:~/.local/bin` - `export PATH=$PATH:~/.local/bin`
- [Install Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) - [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) - thunderbird config (pretty hard to do, should just capture steps taken somewhere)
- firefox config? extensions? host own synchronizer? - firefox config? extensions? host own synchronizer?
- Daemon to restore wallpaper?
#### Neovim #### 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 become: true
replace: copy:
path: "/etc/apt/sources.list" src: sources.list
regexp: "^(.*main.*?)( contrib non-free)?$" dest: /etc/apt/sources.list
replace: '\1 contrib non-free'
- name: APT upgrade - name: APT upgrade
become: true become: true
apt: apt:

View file

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