resolvconf.yml 258 B

123456789
  1. ---
  2. - name: Ensure package resolvconf is absent
  3. apt: name=resolvconf state=absent purge=yes
  4. - name: Ensure nameservers are set in resolv.conf
  5. copy:
  6. dest: /etc/resolv.conf
  7. content: "{% for ip in nameservers %}nameserver {{ ip }}\n{% endfor %}"