Commit 609b4707 authored by nanahira's avatar nanahira

fix

parent 75ed7da6
...@@ -8,9 +8,15 @@ ...@@ -8,9 +8,15 @@
# nameserver {{ br.address | regex_replace("/\d+$", "") }} # nameserver {{ br.address | regex_replace("/\d+$", "") }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if smartdns.external is defined and smartdns.external %}
{% for dns in smartdns.external %}
nameserver {{ dns }}
{% endfor %}
{% else %}
{% for dns in smartdns.china_dns %} {% for dns in smartdns.china_dns %}
nameserver {{dns}} nameserver {{dns}}
{% endfor %} {% endfor %}
{% endif %}
dest: /etc/resolv.conf dest: /etc/resolv.conf
#- name: read docker daemon #- name: read docker daemon
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment