From 7fee61ea96a05ff97897fd9b25cd451840690856 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 16 Dec 2019 18:24:49 -0500 Subject: [PATCH] ansible: Adjust `when` statements to put EL8 repos on EL8 only Signed-off-by: David Galloway --- ansible/examples/slave.yml | 4 ++-- ansible/examples/slave_static.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index 144c21ed..2a772bdd 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -163,7 +163,7 @@ command: "dnf -y copr enable ktdreyer/ceph-el8" when: - ansible_os_family == "RedHat" - - ansible_distribution_major_version|int >= 8 + - ansible_distribution_major_version|int == 8 # This repo contains packages that were built from Fedora SRPMs. Same thing here -- not in EPEL yet. - name: Enable EL8 lab-extras @@ -174,7 +174,7 @@ gpgcheck: no when: - ansible_os_family == "RedHat" - - ansible_distribution_major_version|int >= 8 + - ansible_distribution_major_version|int == 8 - name: Install RPM requirements package: diff --git a/ansible/examples/slave_static.yml b/ansible/examples/slave_static.yml index a2ff6918..23de51d8 100644 --- a/ansible/examples/slave_static.yml +++ b/ansible/examples/slave_static.yml @@ -98,7 +98,7 @@ command: "dnf -y copr enable ktdreyer/ceph-el8" when: - ansible_os_family == "RedHat" - - ansible_distribution_major_version|int >= 8 + - ansible_distribution_major_version|int == 8 # This repo contains packages that were built from Fedora SRPMs. Same thing here -- not in EPEL yet. - name: Enable EL8 lab-extras @@ -109,7 +109,7 @@ gpgcheck: no when: - ansible_os_family == "RedHat" - - ansible_distribution_major_version|int >= 8 + - ansible_distribution_major_version|int == 8 - name: Install RPM requirements (All distro versions) become: yes -- 2.39.5