mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Enable yum integration tests on RHEL 8.0.
This commit is contained in:
parent
c7b9ef740c
commit
b3601435c4
2 changed files with 17 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
when:
|
when:
|
||||||
- ansible_distribution in ['RedHat']
|
- ansible_distribution in ['RedHat']
|
||||||
|
- ansible_distribution_major_version is version('7', '==')
|
||||||
|
|
||||||
- name: Install rpmfluff and deps
|
- name: Install rpmfluff and deps
|
||||||
package:
|
package:
|
||||||
|
@ -34,6 +35,22 @@
|
||||||
when:
|
when:
|
||||||
- ansible_distribution not in ['Fedora']
|
- ansible_distribution not in ['Fedora']
|
||||||
- ansible_python["version"]["major"] == 3
|
- ansible_python["version"]["major"] == 3
|
||||||
|
- not (ansible_distribution == 'RedHat' and ansible_distribution_major_version is version('8', '>='))
|
||||||
|
|
||||||
|
- name: Install rpmfluff from pip on RHEL 8 and later
|
||||||
|
pip:
|
||||||
|
name: rpmfluff
|
||||||
|
when:
|
||||||
|
- ansible_distribution == 'RedHat' and ansible_distribution_major_version is version('8', '>=')
|
||||||
|
|
||||||
|
- name: Install packages needed on RHEL 8 and later
|
||||||
|
dnf:
|
||||||
|
name: "{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- createrepo_c
|
||||||
|
- rpm-build
|
||||||
|
when:
|
||||||
|
- ansible_distribution == 'RedHat' and ansible_distribution_major_version is version('8', '>=')
|
||||||
|
|
||||||
- name: Copy script for creating a repo
|
- name: Copy script for creating a repo
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -2,4 +2,3 @@ destructive
|
||||||
shippable/posix/group1
|
shippable/posix/group1
|
||||||
skip/freebsd
|
skip/freebsd
|
||||||
skip/osx
|
skip/osx
|
||||||
skip/rhel8.0
|
|
||||||
|
|
Loading…
Reference in a new issue