소스 검색

Merge pull request #237 from detiber/ansibleVerCheck

Verify ansible is greater than 1.8.0 and not 1.9.0
Thomas Wiest 10 년 전
부모
커밋
83f1103c06
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      roles/openshift_facts/tasks/main.yml

+ 6 - 0
roles/openshift_facts/tasks/main.yml

@@ -1,3 +1,9 @@
 ---
+- name: Verify Ansible version is greater than 1.8.0 and not 1.9.0
+  assert:
+    that:
+    - ansible_version | version_compare('1.8.0', 'ge')
+    - ansible_version | version_compare('1.9.0', 'ne')
+
 - name: Gather OpenShift facts
   openshift_facts: