Initial commit
This commit is contained in:
25
update-to-deb12/update-to-deb12.yaml
Normal file
25
update-to-deb12/update-to-deb12.yaml
Normal 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'
|
||||
Reference in New Issue
Block a user