Kaynağa Gözat

Verify ansible is greater than 1.8.0 and not 1.9.0

Jason DeTiberus 10 yıl önce
ebeveyn
işleme
f7bbf65996
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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: