Test role with CentOS 8 03/65103/2
authorThanh Ha <zxiiro@gmail.com>
Fri, 14 Aug 2020 18:31:30 +0000 (14:31 -0400)
committerThanh Ha <zxiiro@gmail.com>
Fri, 14 Aug 2020 19:52:44 +0000 (15:52 -0400)
Adds a test environment for CentOS 8.

Change-Id: I0aee89c84a443055bb052164469cc2a5f841aa72
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
molecule/default/molecule.yml
molecule/default/prepare.yml

index 0d1e519..79ab304 100644 (file)
@@ -10,6 +10,8 @@ lint: |
 platforms:
   - name: centos7
     image: centos:7
+  - name: centos8
+    image: centos:8
   - name: ubuntu1604
     image: ubuntu:16.04
   - name: ubuntu1804
index cbdf698..85f9480 100644 (file)
@@ -10,7 +10,7 @@
       become: true
     - name: Install EPEL repository
       yum:
-        name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+        name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
         state: present
       when: ansible_os_family == 'RedHat'
       become: true