openstack-ansible/zuul.d/playbooks/pre-gate-cleanup.yml
Jonathan Rosser 5a867922f2 Remove CI jobs for centos-8
Centos-8 is becoming EOL so we remove the CI jobs.

Depends-On: Id93a3efd4b43bb9770a83d6e23e5736935002922
Change-Id: I8346990908a5d4c949246a50afc5461464df9dab
2021-12-18 18:38:32 +00: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_distribution_release in ['focal']
- name: Remove package excludes for yum/dnf
lineinfile:
dest: '/etc/dnf/dnf.conf'
regexp: "^exclude="
state: absent
when: ansible_pkg_mgr == 'dnf'