Commit 4cd15479 authored by nanahira's avatar nanahira

simplify

parent e6c30a2c
create chnrouter hash:net family inet
{% for subnet in {{chnrouteReverseList.chnroute_reverse}} %}
{% for subnet in chnrouteReverseList.chnroute_reverse %}
add chnrouter {{subnet}}
{% endfor %}
......@@ -11,7 +11,7 @@ dhcp-no-override
dhcp-authoritative
enable-ra
no-dhcp-interface=lo{% for br in bridges %}{% if not br.dhcp %},{{br.name}}{% endif %}{% endfor %}
no-dhcp-interface=lo{% for br in bridges %}{% if not br.dhcp is defined or not br.dhcp %},{{br.name}}{% endif %}{% endfor %}
{% for br in bridges %}
{% if br.dhcp is defined and br.dhcp %}
......
......@@ -24,19 +24,19 @@ force-AAAA-SOA yes
dualstack-ip-selection yes
{% endif %}
{% if ssmartdns.tls_dns is defined and smartdns.tls_dns %}
{% if smartdns.tls_dns is defined and smartdns.tls_dns %}
# TLS DNSes
{% for dns in smartdns.tls_dns %}
server-tls {{dns}} -group tls
{% endfor %}
{% endfor %}
{% endif %}
{% if ssmartdns.tls_dns is defined and smartdns.tls_dns %}
{% if smartdns.https_dns is defined and smartdns.https_dns %}
# HTTPS DNSes
{% for dns in smartdns.https_dns %}
server-https {{dns}} -group tls
{% endfor %}
{% endfor %}
{% endif %}
# China DNSes
{% for dns in smartdns.china_dns %}
......
......@@ -116,6 +116,7 @@
vars:
ppp: '{{item}}'
with_items: '{{ppps}}'
when: ppps is defined and ppps
- name: networking service
become: true
systemd:
......
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