openstack-ansible/zuul.d/playbooks/pre-gate-cleanup.yml
Dmitriy Rabotyagov d72b3394a2 Remove Ubuntu 20.04 support
With ansible-core>=2.14 python 3.8 support has been dropped. Moreover,
nova has bumped minimal required version for libvirt/qemu, which makes
us to remove support for Ubuntu 20.04 Focal Fossa.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_zun/+/884362
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_manila/+/884363
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/884361
Change-Id: I3e6e22553248a9199113a65b0dbe992c38ccb22e
2023-07-07 12:39:23 +02:00

39 lines
1.1 KiB
YAML

---
# Copyright 2020, VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Cleanup gate images
hosts: all
become: yes
become_user: root
tasks:
- name: Cleanup gate images
block:
- name: Switch apt source from https to http
replace:
path: /etc/apt/sources.list
regexp: 'https'
replace: "http"
when:
- ansible_facts['distribution_release'] in ['jammy']
- name: Remove package excludes for yum/dnf
lineinfile:
dest: '/etc/dnf/dnf.conf'
regexp: "^exclude="
state: absent
when: ansible_pkg_mgr == 'dnf'