Add apt role
This commit is contained in:
parent
b999ac8e02
commit
b34ed91c7d
3
roles/apt/defaults/main.yml
Normal file
3
roles/apt/defaults/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
apt_become: true
|
||||
apt_become_user: root
|
38
roles/apt/tasks/main.yml
Normal file
38
roles/apt/tasks/main.yml
Normal 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 }}"
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
roles:
|
||||
- ../roles/alacritty
|
||||
- ../roles/apt
|
||||
- ../roles/emacs
|
||||
- ../roles/fontconfig
|
||||
- ../roles/git
|
||||
|
|
Loading…
Reference in a new issue