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
e0f460d9
Commit
e0f460d9
authored
9 years ago
by
Smaine Kahlouch
Browse files
Options
Downloads
Patches
Plain Diff
copy template dnsmasq pod and remove handlers
parent
2bd6b836
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/dnsmasq/handlers/main.yml
+0
-3
0 additions, 3 deletions
roles/dnsmasq/handlers/main.yml
roles/dnsmasq/tasks/main.yml
+12
-3
12 additions, 3 deletions
roles/dnsmasq/tasks/main.yml
with
12 additions
and
6 deletions
roles/dnsmasq/handlers/main.yml
deleted
100644 → 0
+
0
−
3
View file @
2bd6b836
---
-
name
:
restart dnsmasq
command
:
systemctl restart dnsmasq
This diff is collapsed.
Click to expand it.
roles/dnsmasq/tasks/main.yml
+
12
−
3
View file @
e0f460d9
...
...
@@ -28,7 +28,6 @@
-
'
^127\.0\.0\.1(\s+){{
inventory_hostname
}}.*'
-
'
^::1(\s+){{
inventory_hostname
}}.*'
-
name
:
ensure dnsmasq.d directory exists
file
:
path
:
/etc/dnsmasq.d
...
...
@@ -41,10 +40,20 @@
dest
:
/etc/dnsmasq.d/01-kube-dns.conf
mode
:
755
backup
:
yes
notify
:
-
restart dnsmasq
when
:
inventory_hostname in groups['kube-master']
-
name
:
create dnsmasq pod template
template
:
src=dnsmasq-pod.yml dest=/etc/kubernetes/manifests/dnsmasq-pod.manifest
when
:
inventory_hostname in groups['kube-master']
-
name
:
Check for dnsmasq port
wait_for
:
port
:
53
delay
:
5
timeout
:
100
when
:
inventory_hostname in groups['kube-master']
-
name
:
update resolv.conf with new DNS setup
template
:
src
:
resolv.conf.j2
...
...
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