Disallow Deb10 -> Deb12 upgrades

It doesn't work properly, errors in libc6/perl.
This commit is contained in:
Joshua Boniface 2023-08-26 14:56:43 -04:00
parent f106bf25d4
commit 6e56dd3e4a
1 changed files with 10 additions and 16 deletions

View File

@ -18,6 +18,11 @@
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
@ -129,22 +134,6 @@
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
@ -152,6 +141,11 @@
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