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
66d9a6eb
Commit
66d9a6eb
authored
8 years ago
by
Spencer Smith
Browse files
Options
Downloads
Patches
Plain Diff
updated to use handlers
parent
9b8a7575
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/docker/handlers/main.yml
+15
-0
15 additions, 0 deletions
roles/docker/handlers/main.yml
roles/docker/tasks/systemd-proxies.yml
+1
-9
1 addition, 9 deletions
roles/docker/tasks/systemd-proxies.yml
with
16 additions
and
9 deletions
roles/docker/handlers/main.yml
0 → 100644
+
15
−
0
View file @
66d9a6eb
---
-
name
:
restart docker
command
:
/bin/true
notify
:
-
reload systemd
-
reload docker
-
name
:
reload systemd
shell
:
systemctl daemon-reload
when
:
ansible_service_mgr == "systemd"
-
name
:
reload docker
service
:
name
:
docker
state
:
restarted
This diff is collapsed.
Click to expand it.
roles/docker/tasks/systemd-proxies.yml
+
1
−
9
View file @
66d9a6eb
...
@@ -6,12 +6,4 @@
...
@@ -6,12 +6,4 @@
template
:
template
:
src
:
http-proxy.conf.j2
src
:
http-proxy.conf.j2
dest
:
/etc/systemd/system/docker.service.d/http-proxy.conf
dest
:
/etc/systemd/system/docker.service.d/http-proxy.conf
register
:
systemddockerproxy
notify
:
restart docker
-
name
:
reload systemctl daemons
shell
:
systemctl daemon-reload
when
:
systemddockerproxy.changed
-
name
:
restart docker so configs are applies
service
:
name=docker state=restarted
when
:
systemddockerproxy.changed
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