From: Thanh Ha Date: Fri, 14 Aug 2020 18:31:30 +0000 (-0400) Subject: Test role with CentOS 8 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=262e2f8aba9a20b7b4220e3a5dc40117a2e99e76;p=ansible%2Froles%2Flf-recommended-tools.git Test role with CentOS 8 Adds a test environment for CentOS 8. Change-Id: I0aee89c84a443055bb052164469cc2a5f841aa72 Signed-off-by: Thanh Ha --- diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 0d1e519..79ab304 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -10,6 +10,8 @@ lint: | platforms: - name: centos7 image: centos:7 + - name: centos8 + image: centos:8 - name: ubuntu1604 image: ubuntu:16.04 - name: ubuntu1804 diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index cbdf698..85f9480 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -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