diff options
author | Matt Clay <matt@mystile.com> | 2019-01-18 23:31:02 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-01-18 23:54:36 +0100 |
commit | b3601435c4886be77cdd9f3b12894644173d410c (patch) | |
tree | 8ab3ed76ecd6de9de1290a218418556025c69bbf /test/integration/targets/setup_rpm_repo | |
parent | Enable seboolean integration test on RHEL 8.0. (diff) | |
download | ansible-b3601435c4886be77cdd9f3b12894644173d410c.tar.xz ansible-b3601435c4886be77cdd9f3b12894644173d410c.zip |
Enable yum integration tests on RHEL 8.0.
Diffstat (limited to 'test/integration/targets/setup_rpm_repo')
-rw-r--r-- | test/integration/targets/setup_rpm_repo/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/targets/setup_rpm_repo/tasks/main.yml b/test/integration/targets/setup_rpm_repo/tasks/main.yml index c2d56528d9..6f80b701a4 100644 --- a/test/integration/targets/setup_rpm_repo/tasks/main.yml +++ b/test/integration/targets/setup_rpm_repo/tasks/main.yml @@ -4,6 +4,7 @@ name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm when: - ansible_distribution in ['RedHat'] + - ansible_distribution_major_version is version('7', '==') - name: Install rpmfluff and deps package: @@ -34,6 +35,22 @@ when: - ansible_distribution not in ['Fedora'] - 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 copy: |