]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Adjust `when` statements to put EL8 repos on EL8 only 1456/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 16 Dec 2019 23:24:49 +0000 (18:24 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 16 Dec 2019 23:24:49 +0000 (18:24 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml
ansible/examples/slave_static.yml

index 144c21ed5338cb74ce46d815bcc6b1ff7cd174b8..2a772bdd6e94e1cbe878d6e47847c8cd2b80c50c 100644 (file)
       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
         gpgcheck: no
       when:
         - ansible_os_family == "RedHat"
-        - ansible_distribution_major_version|int >= 8
+        - ansible_distribution_major_version|int == 8
 
     - name: Install RPM requirements
       package:
index a2ff6918cc39f10eb4f8e44ad54031eae45b12bf..23de51d89b85a70e88a3e1d8f9622ffb1991c399 100644 (file)
@@ -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
         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