2020-06-29 07:26:17 +00:00
|
|
|
---
|
|
|
|
- name: NetworkManager | Add nameservers to NM configuration
|
|
|
|
ini_file:
|
2020-09-07 09:27:41 +00:00
|
|
|
path: /etc/NetworkManager/conf.d/dns.conf
|
|
|
|
section: global-dns-domain-*
|
|
|
|
option: servers
|
2020-09-10 10:41:44 +00:00
|
|
|
value: "{{ ( coredns_server + nameservers|d([]) + cloud_resolver|d([])) | unique | join(',') }}"
|
2020-06-29 07:26:17 +00:00
|
|
|
mode: '0600'
|
|
|
|
backup: yes
|
|
|
|
notify: Preinstall | update resolvconf for Fedora CoreOS
|
|
|
|
|
|
|
|
- name: NetworkManager | Add DNS search to NM configuration
|
|
|
|
ini_file:
|
2020-09-07 09:27:41 +00:00
|
|
|
path: /etc/NetworkManager/conf.d/dns.conf
|
|
|
|
section: global-dns
|
|
|
|
option: searches
|
2020-09-10 10:41:44 +00:00
|
|
|
value: "{{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(',') }}"
|
2020-06-29 07:26:17 +00:00
|
|
|
mode: '0600'
|
|
|
|
backup: yes
|
|
|
|
notify: Preinstall | update resolvconf for Fedora CoreOS
|
|
|
|
|
|
|
|
- name: NetworkManager | Add DNS options to NM configuration
|
|
|
|
ini_file:
|
2020-09-07 09:27:41 +00:00
|
|
|
path: /etc/NetworkManager/conf.d/dns.conf
|
|
|
|
section: global-dns
|
|
|
|
option: options
|
2020-06-29 07:26:17 +00:00
|
|
|
value: "ndots:{{ ndots }};timeout:2;attempts:2;"
|
|
|
|
mode: '0600'
|
|
|
|
backup: yes
|
|
|
|
notify: Preinstall | update resolvconf for Fedora CoreOS
|