fix: ubuntu 20.04安装集群dns问题 #970

pull/975/head
gjmzj 2021-01-23 11:18:39 +08:00
parent ce0e0b06a9
commit a20c5dcea4
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ podPidsLimit: -1
port: 10250
# disable readOnlyPort
readOnlyPort: 0
{% if ansible_distribution_release == "bionic" %}
{% if ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int > 16 %}
resolvConf: /run/systemd/resolve/resolv.conf
{% else %}
resolvConf: /etc/resolv.conf