]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Support Yakkety for static libvirt slaves
authorDavid Galloway <dgallowa@redhat.com>
Fri, 7 Jul 2017 19:28:10 +0000 (15:28 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 10 Jul 2017 19:13:59 +0000 (15:13 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave_libvirt_static.yml

index ec7e1a03a3dac9fe0c0b2835aeb533e75dabd9ed..c6fecee6d34592e6efe2fb5278d4b811d8cd5f5b 100644 (file)
@@ -1,6 +1,6 @@
 ---
 # This playbook is used to configure static libvirt&&vagrant slaves.
-# Ubuntu Xenial is the only supported distro at this time
+# Ubuntu Xenial or Yakkety are the only supported distros at this time
 #
 # Example usage:
 # On a baremetal node already configured by the github.com/ceph/ceph-cm-ansible common role,
 
   tasks:
 
-    - name: Fail if slave is not running Xenial
+    - name: Fail if slave is not running Xenial or Yakkety
       fail:
-        msg: "Slave is not running Xenial"
-      when: ansible_distribution_release != "xenial"
+        msg: "Slave is not running Xenial or Yakkety"
+      when: ansible_distribution != "Ubuntu" or
+            (ansible_distribution == "Ubuntu" and ansible_distribution_major_version < 16)
 
     # vagrant doesn't have repositories, this chacra repo will be better to have
     # around and can get updates as soon as a new vagrant version is published via