From: Zack Cerza Date: Tue, 10 Jan 2017 22:58:47 +0000 (-0700) Subject: Ensure domain is set in resolv.conf X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a6f7b4d1c4685c647216d03e7d6bb82ce8a71172;p=ceph-cm-ansible.git Ensure domain is set in resolv.conf Signed-off-by: Zack Cerza --- diff --git a/roles/testnode/tasks/resolvconf.yml b/roles/testnode/tasks/resolvconf.yml index 8017a1e..940b6eb 100644 --- a/roles/testnode/tasks/resolvconf.yml +++ b/roles/testnode/tasks/resolvconf.yml @@ -54,3 +54,9 @@ dest: /etc/resolv.conf regexp: "^search .*" line: "search {{ lab_domain }}" + +- name: Ensure domain is set in /etc/resolv.conf + lineinfile: + dest: /etc/resolv.conf + regexp: "^domain .*" + line: "domain {{ lab_domain }}"