From: Zack Cerza Date: Mon, 20 Jun 2016 18:02:47 +0000 (-0600) Subject: Don't rely on LSB when testing for distro version X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F250%2Fhead;p=ceph-cm-ansible.git Don't rely on LSB when testing for distro version Signed-off-by: Zack Cerza --- diff --git a/roles/testnode/tasks/resolvconf.yml b/roles/testnode/tasks/resolvconf.yml index c57ca57a..95c42409 100644 --- a/roles/testnode/tasks/resolvconf.yml +++ b/roles/testnode/tasks/resolvconf.yml @@ -46,4 +46,5 @@ # The Ubuntu bug is: # https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1593489 when: bounce_interface == "True" or - (ansible_lsb.id|lower == 'ubuntu' and ansible_lsb.major_release|int >= 16) + (ansible_distribution|lower == 'ubuntu' and + ansible_distribution_major_version|int >= 16)