From: David Galloway Date: Fri, 7 Jul 2017 19:28:10 +0000 (-0400) Subject: ansible: Support Yakkety for static libvirt slaves X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=040d9ae57369ac17423535b54acda2fb8a3bef30;p=ceph-build.git ansible: Support Yakkety for static libvirt slaves Signed-off-by: David Galloway --- diff --git a/ansible/examples/slave_libvirt_static.yml b/ansible/examples/slave_libvirt_static.yml index ec7e1a03..c6fecee6 100644 --- a/ansible/examples/slave_libvirt_static.yml +++ b/ansible/examples/slave_libvirt_static.yml @@ -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, @@ -21,10 +21,11 @@ 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