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 @@ ...@@ -5,4 +5,6 @@
state: absent state: absent
autoremove: yes autoremove: yes
purge: yes purge: yes
environment:
NEEDRESTART_SUSPEND: '1'
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: clean packages again
include_tasks: apt-clean.yml
- name: install aptitude first - name: install aptitude first
become: true become: true
apt: apt:
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
update_cache: true update_cache: true
upgrade: dist upgrade: dist
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
environment:
NEEDRESTART_SUSPEND: '1'
- name: yum update - name: yum update
become: true become: true
yum: yum:
...@@ -21,6 +23,8 @@ ...@@ -21,6 +23,8 @@
update_cache: true update_cache: true
state: latest state: latest
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8 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 - name: install a python alternate to prevent ansible problems
become: true become: true
apt: 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