浏览代码

Fix condition to update resolv.conf

Emmanuel Bouthenot 9 年之前
父节点
当前提交
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)