Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
d3a85842
Commit
d3a85842
authored
9 years ago
by
Smaine Kahlouch
Browse files
Options
Downloads
Patches
Plain Diff
add timeout options to resolv.conf
parent
51f1ae1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/dnsmasq/tasks/main.yml
+13
-0
13 additions, 0 deletions
roles/dnsmasq/tasks/main.yml
with
13 additions
and
0 deletions
roles/dnsmasq/tasks/main.yml
+
13
−
0
View file @
d3a85842
...
@@ -80,6 +80,19 @@
...
@@ -80,6 +80,19 @@
follow
:
yes
follow
:
yes
with_items
:
groups['kube-master']
with_items
:
groups['kube-master']
-
name
:
Add options to resolv.conf
lineinfile
:
line
:
options {{ item }}
dest
:
"
{{resolvconffile}}"
state
:
present
regexp
:
"
^options.*{{
item
}}$"
insertafter
:
EOF
backup
:
yes
follow
:
yes
with_items
:
-
timeout:5
-
attempts:2
-
name
:
disable resolv.conf modification by dhclient
-
name
:
disable resolv.conf modification by dhclient
copy
:
src=dhclient_nodnsupdate dest=/etc/dhcp/dhclient-enter-hooks.d/nodnsupdate mode=u+x backup=yes
copy
:
src=dhclient_nodnsupdate dest=/etc/dhcp/dhclient-enter-hooks.d/nodnsupdate mode=u+x backup=yes
when
:
ansible_os_family == "Debian"
when
:
ansible_os_family == "Debian"
...
...
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