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
|
2022-02-26 18:29:23 +00:00
|
|
|
value: "{{ nameserverentries }}"
|
2020-06-29 07:26:17 +00:00
|
|
|
mode: '0600'
|
|
|
|
backup: yes
|
2022-02-26 18:29:23 +00:00
|
|
|
notify: Preinstall | update resolvconf for networkmanager
|
2020-06-29 07:26:17 +00:00
|
|
|
|
|
|
|
- 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
|
2022-02-26 18:29:23 +00:00
|
|
|
notify: Preinstall | update resolvconf for networkmanager
|
2020-06-29 07:26:17 +00:00
|
|
|
|
|
|
|
- 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
|
2022-02-26 18:29:23 +00:00
|
|
|
notify: Preinstall | update resolvconf for networkmanager
|