You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.0 KiB

  1. ---
  2. - name: NetworkManager | Add nameservers to NM configuration
  3. ini_file:
  4. path: /etc/NetworkManager/conf.d/dns.conf
  5. section: global-dns-domain-*
  6. option: servers
  7. value: "{{ ( coredns_server + nameservers|d([]) + cloud_resolver|d([])) | unique | join(',') }}"
  8. mode: '0600'
  9. backup: yes
  10. notify: Preinstall | update resolvconf for Fedora CoreOS
  11. - name: NetworkManager | Add DNS search to NM configuration
  12. ini_file:
  13. path: /etc/NetworkManager/conf.d/dns.conf
  14. section: global-dns
  15. option: searches
  16. value: "{{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(',') }}"
  17. mode: '0600'
  18. backup: yes
  19. notify: Preinstall | update resolvconf for Fedora CoreOS
  20. - name: NetworkManager | Add DNS options to NM configuration
  21. ini_file:
  22. path: /etc/NetworkManager/conf.d/dns.conf
  23. section: global-dns
  24. option: options
  25. value: "ndots:{{ ndots }};timeout:2;attempts:2;"
  26. mode: '0600'
  27. backup: yes
  28. notify: Preinstall | update resolvconf for Fedora CoreOS