refactor ♻️: Refactored the code to use a more structured approach for DNS configuration and added optional tests.
Updated the role to include optional tests after running it, ensuring that DNS resolution is correctly configured. The code has been refactored to improve readability and maintainability.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
search {{ dns_search }}
|
||||
{% for server in dns_servers %}
|
||||
nameserver {{ server }}
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,4 @@
|
||||
[Resolve]
|
||||
DNS={{ dns_servers | join(' ') }}
|
||||
Domains={{ dns_search }}
|
||||
FallbackDNS=
|
||||
Reference in New Issue
Block a user