]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
examples/builder.yml: don't add definition for dist past el7
authorDan Mick <dan.mick@redhat.com>
Wed, 13 Nov 2024 03:05:50 +0000 (19:05 -0800)
committerDan Mick <dan.mick@redhat.com>
Wed, 13 Nov 2024 03:05:50 +0000 (19:05 -0800)
This caused some really weird breakage where el8 was being set
on el9 machines, and it's no longer necessary (I don't know why it
was ever there)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ansible/examples/builder.yml

index 22c1b4d7421ec716bb4db046d8aea5880757c624..c60e2443885a3a9514bc702f8a417e71621cf2e3 100644 (file)
             dest: "/home/{{ jenkins_user }}/.rpmmacros"
             regexp: '^%dist'
             line: '%dist .el{{ ansible_distribution_major_version }}'
-      when: ansible_os_family == "RedHat"
+      when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 7
 
     ## tmpwatch/tmpreaper TASKS
     - name: tmpwatch/tmpreaper Tasks