瀏覽代碼

Fix condition to update resolv.conf

Emmanuel Bouthenot 10 年之前
父節點
當前提交
d5c9b696ca
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/common/tasks/dns.yml

+ 1 - 1
roles/common/tasks/dns.yml

@@ -12,4 +12,4 @@
 
 - name: Install resolv.conf
   template: src=dns/resolv.conf.j2 dest=/etc/resolv.conf owner=root group=root mode=0644
-  when: with_dnscache or nameservers is defined
+  when: with_dnscache or (nameservers is defined and nameservers)