소스 검색

Fix yum/subman version check on Atomic.

Devan Goodwin 8 년 전
부모
커밋
62e5b2a4bc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      playbooks/common/openshift-cluster/initialize_openshift_version.yml

+ 2 - 1
playbooks/common/openshift-cluster/initialize_openshift_version.yml

@@ -12,9 +12,10 @@
       {{ repoquery_cmd }} --installed --qf '%{version}' "yum"
     register: yum_ver_test
     changed_when: false
+    when: not openshift.common.is_atomic | bool
   - fail:
       msg: Incompatible versions of yum and subscription-manager found. You may need to update yum and yum-utils.
-    when: "'Plugin \"search-disabled-repos\" requires API 2.7. Supported API is 2.6.' in yum_ver_test.stdout"
+    when: "not openshift.common.is_atomic | bool and 'Plugin \"search-disabled-repos\" requires API 2.7. Supported API is 2.6.' in yum_ver_test.stdout"
 
 - name: Determine openshift_version to configure on first master
   hosts: oo_first_master