Преглед изворни кода

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)