]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Ensure search domain is set in resolv.conf
authorZack Cerza <zack@redhat.com>
Tue, 10 Jan 2017 22:58:33 +0000 (15:58 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 11 Jan 2017 17:35:56 +0000 (10:35 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/testnode/tasks/resolvconf.yml

index 95c42409697b223d052489906d2c81266a578f1e..8017a1eddf3bf1bec28563701cccde2b3110fb49 100644 (file)
@@ -48,3 +48,9 @@
   when: bounce_interface == "True" or 
         (ansible_distribution|lower == 'ubuntu' and
         ansible_distribution_major_version|int >= 16)
+
+- name: Ensure lab_domain is in search domains in /etc/resolv.conf
+  lineinfile:
+    dest: /etc/resolv.conf
+    regexp: "^search .*"
+    line: "search {{ lab_domain }}"