From: Zack Cerza Date: Thu, 16 Jun 2016 20:26:17 +0000 (-0600) Subject: Always bounce the main interface on xenial X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49eb6f7ae50ab7375897455d66d87fcbf10d158c;p=ceph-cm-ansible.git Always bounce the main interface on xenial Signed-off-by: Zack Cerza --- diff --git a/roles/testnode/tasks/resolvconf.yml b/roles/testnode/tasks/resolvconf.yml index d4d863bb..caeab47f 100644 --- a/roles/testnode/tasks/resolvconf.yml +++ b/roles/testnode/tasks/resolvconf.yml @@ -40,4 +40,8 @@ - name: ifdown and ifup shell: "ifdown {{ interface }} && ifup {{ interface }}" - when: bounce_interface == "True" + # Even if bounce_interface is False, we need to work around a Xenial issue + # where removing resolvconf breaks DNS by removing /etc/resolv.conf. Bouncing + # the interface rebuilds it. + when: bounce_interface == "True" or + (ansible_lsb.id|lower == 'ubuntu' and ansible_lsb.major_release|int >= 16)