Initial commit

This commit is contained in:
DerLinkman
2024-02-02 21:24:08 +01:00
commit b03f7a47e0
7 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
- name: Update to Debian 12
hosts: all
tasks:
- name: Run Pre Update and Upgrade before Dist Upgrade
apt:
update_cache: yes
upgrade: yes
when: ansible_distribution == 'Debian'
- name: Replace "bullseye" with "bookworm" in sources.list
replace:
backup: yes
path: /etc/apt/sources.list
regexp: 'bullseye'
replace: 'bookworm'
when: ansible_distribution == 'Debian'
- name: Replace "bullseye" with "bookworm" in sources.list.d/docker
replace:
backup: yes
path: /etc/apt/sources.list.d/docker.list
regexp: 'bullseye'
replace: 'bookworm'
when: ansible_distribution == 'Debian'