]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Always bounce the main interface on xenial
authorZack Cerza <zack@redhat.com>
Thu, 16 Jun 2016 20:26:17 +0000 (14:26 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 16 Jun 2016 23:40:51 +0000 (17:40 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/testnode/tasks/resolvconf.yml

index d4d863bb273ca79fccd9be22a8c40e60369e1c59..caeab47ff772ee898e5cf942b73035ac0c8d0b5f 100644 (file)
@@ -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)