fix enable server_names

This commit is contained in:
itdoginfo
2022-06-18 11:01:26 +07:00
parent 717a618fff
commit 28fe098160

View File

@@ -301,11 +301,17 @@
# Configure dnscrypt2
- name: check string in dnscrypt-proxy.toml
shell: grep "# server_names" /etc/dnscrypt-proxy2/dnscrypt-proxy.toml
register: check_server_names
ignore_errors: true
- name: dnscrypt2 enable exact servers
lineinfile:
path: /etc/dnscrypt-proxy2/dnscrypt-proxy.toml
regexp: "# server_names ="
line: "server_names = ['google', 'cloudflare', 'scaleway-fr', 'yandex']"
when: check_server_names.stdout == "1"
- name: edit dhcp config. resolvfile commented
lineinfile: