Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
common
Commits
e17e04fa
Commit
e17e04fa
authored
2 years ago
by
Lars Beckers
Committed by
Thomas Schneider
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
basic-system: add options for resolv.conf
parent
40c26b8c
Branches
Branches containing commit
No related tags found
1 merge request
!23
basic-system: add options for resolv.conf
Pipeline
#4349
passed
2 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
basic-system/defaults/main.yml
+11
-0
11 additions, 0 deletions
basic-system/defaults/main.yml
basic-system/templates/resolv.conf.j2
+9
-3
9 additions, 3 deletions
basic-system/templates/resolv.conf.j2
with
20 additions
and
3 deletions
basic-system/defaults/main.yml
+
11
−
0
View file @
e17e04fa
...
...
@@ -16,3 +16,14 @@ tmp_mount_options:
-
nodev
-
noexec
fstrim
:
false
resolv_search
:
-
"
{{
domain
}}"
resolv_nameservers
:
"
{{
nameservers
}}"
resolv_options
:
[]
# - "timeout:5" # default, capped to 30, per resolver
# - "attempts:2" # default, capped to 5
# - "ndots:1" # default, capped to 15, #dots indicating absolute name
# - "rotate" # try listed nameservers in round-robin instead of static order
# - "edns0" # enable extensions from RFC 2671
# - "no-tld-query" # disable resolving unqualified names as TLDs
# - "trust-ad" # trust DNSSEC-validation of your resolver
This diff is collapsed.
Click to expand it.
basic-system/templates/resolv.conf.j2
+
9
−
3
View file @
e17e04fa
domain {{ domain }}
search {{ domain }}
{% if resolv_search|length > 0 %}
domain {{ resolv_search|first }}
search {{ resolv_search|join(' ') }}
{% endif %}
{% for server in nameservers %}
{% for server in
resolv_
nameservers %}
nameserver {{ server }}
{% endfor %}
{% for option in resolv_options %}
options {{ option }}
{% endfor %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment