]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
nameserver: Add check for ansible_version.major >= 2 229/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 21 Apr 2016 20:09:56 +0000 (16:09 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 22 Apr 2016 16:39:48 +0000 (12:39 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/nameserver/tasks/records.yml

index 1462de6613c1ab9a0d1c629edfcccf51529f14d1..c66b09c0cd85b2edc497eff7a1e06a7fd6cd59e7 100644 (file)
@@ -1,4 +1,11 @@
 ---
+# Creating reverse records requires ansible_version.major >=2
+# to use the skip_missing flag of with_subelements
+# https://github.com/ansible/ansible/issues/9827
+- name: Bail if local ansible version is older than v2.0
+  assert:
+    that: "{{ ansible_version.major }} >= 2"
+
 - name: Create zone file path
   file:
     path: "{{ named_conf_zones_path }}"