Revert "Disallow Deb10 -> Deb12 upgrades"

This reverts commit 6e56dd3e4a.
This commit is contained in:
Joshua Boniface 2023-09-01 15:42:30 -04:00
parent 4bcd7b40a0
commit 25ab984c9b
1 changed files with 16 additions and 10 deletions

View File

@ -18,11 +18,6 @@
debian_codename: "{{ ansible_lsb.codename }}" debian_codename: "{{ ansible_lsb.codename }}"
when: ansible_lsb.codename is defined when: ansible_lsb.codename is defined
- name: bail out if incorrect version
shell: echo "Can't upgrade from Debian < 11; run upgrade-pvc-cluster_deb11.yml against cluster first!" && /bin/false
delegate_to: localhost
when: debian_version|int < 11
- name: set PVC maintenance mode - name: set PVC maintenance mode
command: pvc cluster maintenance on command: pvc cluster maintenance on
@ -134,6 +129,22 @@
with_items: with_items:
- /etc/apt/sources.list - /etc/apt/sources.list
- name: remove security entry if on Debian 10
lineinfile:
dest: /etc/apt/sources.list
regexp: "security.debian.org"
state: absent
when: debian_version < 11
- name: update apt cache
apt:
update_cache: yes
- name: install python-is-python3
apt:
name: python-is-python3
state: latest
- name: aptitude dist upgrade and cleanup - name: aptitude dist upgrade and cleanup
apt: apt:
update_cache: yes update_cache: yes
@ -141,11 +152,6 @@
autoclean: yes autoclean: yes
upgrade: dist upgrade: dist
- name: install python-is-python3
apt:
name: python-is-python3
state: latest
- name: clean up obsolete kernels - name: clean up obsolete kernels
command: /usr/local/sbin/kernel-cleanup.sh command: /usr/local/sbin/kernel-cleanup.sh