From: David Galloway Date: Mon, 16 Dec 2019 23:24:49 +0000 (-0500) Subject: ansible: Adjust `when` statements to put EL8 repos on EL8 only X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1456%2Fhead;p=ceph-build.git ansible: Adjust `when` statements to put EL8 repos on EL8 only Signed-off-by: David Galloway --- 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