Retire CentOS 8

This commit is contained in:
2023-08-19 23:13:56 +12:00
parent 47a52b92dd
commit 817d9ba685
4 changed files with 15 additions and 15 deletions

View File

@@ -1,7 +1,6 @@
matrix:
MOLECULE_DISTRO:
- centos7
- centos8
- almalinux8
steps:

View File

@@ -4,8 +4,8 @@ dependency:
driver:
name: docker
platforms:
- name: instance-${MOLECULE_DISTRO:-centos8}
image: docker.io/guisea/${MOLECULE_DISTRO:-centos8}:latest
- name: instance-${MOLECULE_DISTRO:-centos7}
image: docker.io/guisea/${MOLECULE_DISTRO:-centos7}:latest
pre_build_image: true
role_name_check: 2
provisioner:

View File

@@ -5,15 +5,16 @@
hosts: all
tasks:
- name: Retrieve yum repofile
shell: cat /etc/yum.repos.d/epel.repo
ansible.builtin.shell: cat /etc/yum.repos.d/epel.repo
ignore_errors: true
register: repofile
- debug:
- name: Output repofile
ansible.builtin.debug:
var: repofile
- name: metalink is present
assert:
- name: Metalink is present
ansible.builtin.assert:
that:
- "'metalink=' in repofile.stdout"
@@ -22,15 +23,15 @@
# that:
# - "'baseurl=' not in repofile.stdout"
- name: try to install htop from EPEL
package:
- name: Try to install htop from EPEL
ansible.builtin.package:
name: htop
state: latest
state: installed
- name: Gather the rpm package facts
package_facts:
ansible.builtin.package_facts:
manager: auto
- name: is htop actually installed?
assert:
- name: Is htop actually installed?
ansible.builtin.assert:
that: "'htop' in ansible_facts.packages"

View File

@@ -4,8 +4,8 @@ dependency:
driver:
name: docker
platforms:
- name: instance-${MOLECULE_DISTRO:-centos8}
image: docker.io/guisea/${MOLECULE_DISTRO:-centos8}:latest
- name: instance-${MOLECULE_DISTRO:-centos7}
image: docker.io/guisea/${MOLECULE_DISTRO:-centos7}:latest
pre_build_image: true
provisioner:
name: ansible