瀏覽代碼

Verify ansible is greater than 1.8.0 and not 1.9.0

Jason DeTiberus 10 年之前
父節點
當前提交
f7bbf65996
共有 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: