diff mbox series

[1/5] scripts/ci: remove unnecessary checks from CentOS playbook

Message ID 20230119154145.471156-2-pbonzini@redhat.com
State New
Headers show
Series scripts/ci: update build environment playbooks | expand

Commit Message

Paolo Bonzini Jan. 19, 2023, 3:41 p.m. UTC
The playbook is meant for a CentOS 8 install and is already checking
/etc/redhat-release.  Simplify it by checking only the result of the
"extra check" rather than the Ansible facts dictionary.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 scripts/ci/org.centos/stream/8/build-environment.yml | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/scripts/ci/org.centos/stream/8/build-environment.yml b/scripts/ci/org.centos/stream/8/build-environment.yml
index 42b0471634c2..fe8807b7b074 100644
--- a/scripts/ci/org.centos/stream/8/build-environment.yml
+++ b/scripts/ci/org.centos/stream/8/build-environment.yml
@@ -17,8 +17,6 @@ 
         option: enabled
         value: "1"
       when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] == '8'
         - centos_stream_8
 
     - name: Install basic packages to build QEMU on CentOS Stream 8
@@ -46,6 +44,4 @@ 
           - systemd-devel
         state: present
       when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] == '8'
         - centos_stream_8