From: David Galloway Date: Thu, 21 Apr 2016 20:09:56 +0000 (-0400) Subject: nameserver: Add check for ansible_version.major >= 2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4581161b421382564654b4a56673332cd74cb5ec;p=ceph-cm-ansible.git nameserver: Add check for ansible_version.major >= 2 Signed-off-by: David Galloway --- diff --git a/roles/nameserver/tasks/records.yml b/roles/nameserver/tasks/records.yml index 1462de6..c66b09c 100644 --- a/roles/nameserver/tasks/records.yml +++ b/roles/nameserver/tasks/records.yml @@ -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 }}"