Commit 358ad092 authored by nanahira's avatar nanahira

fix crash on ubuntu upgrades

parent 56af62f6
Pipeline #16859 failed with stage
in 9 minutes and 16 seconds
......@@ -5,4 +5,6 @@
state: absent
autoremove: yes
purge: yes
environment:
NEEDRESTART_SUSPEND: '1'
when: ansible_os_family == 'Debian'
- name: clean packages again
include_tasks: apt-clean.yml
- name: install aptitude first
become: true
apt:
......
......@@ -7,6 +7,8 @@
update_cache: true
upgrade: dist
when: ansible_os_family == 'Debian'
environment:
NEEDRESTART_SUSPEND: '1'
- name: yum update
become: true
yum:
......@@ -21,6 +23,8 @@
update_cache: true
state: latest
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8
- name: clean packages again after upgrade
include_tasks: apt-clean.yml
- name: install a python alternate to prevent ansible problems
become: true
apt:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment