You've already forked ansible-role-repo-epel
Retire CentOS 8
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
matrix:
|
||||
MOLECULE_DISTRO:
|
||||
- centos7
|
||||
- centos8
|
||||
- almalinux8
|
||||
|
||||
steps:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user