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: matrix:
MOLECULE_DISTRO: MOLECULE_DISTRO:
- centos7 - centos7
- centos8
- almalinux8 - almalinux8
steps: steps:

View File

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

View File

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

View File

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