roles: rely on configured defaults (#13249)

Signed-off-by: Zakhar Dvurechensky <72825626+Zakharden@users.noreply.github.com>
This commit is contained in:
Zakhar Dvurechensky
2026-05-27 12:39:50 +03:00
committed by GitHub
parent 03ae25e410
commit 9049703ce0
6 changed files with 11 additions and 8 deletions

View File

@@ -12,7 +12,7 @@
{% for item in nameserverentries %}
nameserver {{ item }}
{% endfor %}
options ndots:{{ ndots }} timeout:{{ dns_timeout | default('2') }} attempts:{{ dns_attempts | default('2') }}
options ndots:{{ ndots }} timeout:{{ dns_timeout }} attempts:{{ dns_attempts }}
state: present
insertbefore: BOF
create: true

View File

@@ -32,7 +32,7 @@
path: /etc/NetworkManager/conf.d/dns.conf
section: global-dns
option: options
value: "ndots:{{ ndots }},timeout:{{ dns_timeout | default('2') }},attempts:{{ dns_attempts | default('2') }}"
value: "ndots:{{ ndots }},timeout:{{ dns_timeout }},attempts:{{ dns_attempts }}"
mode: '0600'
backup: "{{ leave_etc_backup_files }}"
notify: Preinstall | update resolvconf for networkmanager