1
0
Fork 0

Add apt role

This commit is contained in:
Daniele Tricoli 2022-12-05 23:12:16 +01:00
parent b999ac8e02
commit b34ed91c7d
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
apt_become: true
apt_become_user: root

38
roles/apt/tasks/main.yml Normal file
View file

@ -0,0 +1,38 @@
---
- block:
- name: install source.list
ansible.builtin.copy:
dest: /etc/apt/sources.list
content: |
deb http://deb.debian.org/debian/ testing non-free contrib main
deb-src http://deb.debian.org/debian/ testing main contrib non-free
deb http://deb.debian.org/debian/ unstable main contrib non-free
deb-src http://deb.debian.org/debian/ unstable main contrib non-free
deb http://deb.debian.org/debian/ experimental main contrib non-free
# deb-src http://deb.debian.org/debian/ experimental main contrib non-free
# deb http://deb.debian.org/debian-debug/ testing-debug main
# deb http://deb.debian.org/debian-debug/ testing-proposed-updates-debug main
# deb http://deb.debian.org/debian-debug/ unstable-debug main
# deb http://deb.debian.org/debian-debug/ experimental-debug main
# Line commented out by installer because it failed to verify:
# deb http://security.debian.org/debian-security/ bullseye/updates main
# Line commented out by installer because it failed to verify:
# deb-src http://security.debian.org/debian-security/ bullseye/updates main
- name: install source.list
ansible.builtin.copy:
dest: /etc/apt/preferences
content: |
Package: *
Pin: release a=testing
Pin-Priority: 900
Package: *
Pin: release o=Debian
Pin-Priority: -1
become: "{{ apt_become }}"
become_user: "{{ apt_become_user }}"

View file

@ -5,6 +5,7 @@
roles:
- ../roles/alacritty
- ../roles/apt
- ../roles/emacs
- ../roles/fontconfig
- ../roles/git