common: Sync
This commit is contained in:
parent
591cfd73af
commit
1bab3d478d
5 changed files with 52 additions and 0 deletions
8
roles/common/tasks/apt-minimal.yaml
Normal file
8
roles/common/tasks/apt-minimal.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Configure auto-upgrades
|
||||
template:
|
||||
src: apt-minimal
|
||||
dest: /etc/apt/apt.conf.d/20minimal
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
28
roles/common/tasks/debian-upgrade.yaml
Normal file
28
roles/common/tasks/debian-upgrade.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: Install source list
|
||||
template:
|
||||
src: stable-sources.list
|
||||
dest: /etc/apt/sources.list
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Remove backports
|
||||
file:
|
||||
path: /etc/apt/sources.list.d/backports.list
|
||||
state: absent
|
||||
|
||||
- name: update
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: full-upgrade
|
||||
apt:
|
||||
upgrade: full
|
||||
|
||||
- name: Reboot
|
||||
reboot:
|
||||
|
||||
- name: autoremove
|
||||
apt:
|
||||
autoremove: yes
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- tags: [ debian-upgrade, never ]
|
||||
import_tasks: debian-upgrade.yaml
|
||||
when: ansible_facts['distribution_release'] != "bookworm"
|
||||
|
||||
- tags: debian_backports
|
||||
import_tasks: debian-backports.yaml
|
||||
|
||||
|
|
4
roles/common/templates/apt-minimal
Normal file
4
roles/common/templates/apt-minimal
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Managed by Ansible
|
||||
|
||||
APT::Install-Recommends "0";
|
||||
APT::Install-Suggests "0";
|
8
roles/common/templates/stable-sources.list
Normal file
8
roles/common/templates/stable-sources.list
Normal file
|
@ -0,0 +1,8 @@
|
|||
deb http://deb.debian.org/debian bookworm main non-free-firmware
|
||||
deb-src http://deb.debian.org/debian bookworm main non-free-firmware
|
||||
|
||||
deb http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
|
||||
deb-src http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
|
||||
|
||||
deb http://deb.debian.org/debian bookworm-updates main non-free-firmware
|
||||
deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware
|
Loading…
Add table
Reference in a new issue