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
1e524c68
Commit
1e524c68
authored
5 years ago
by
Sergey
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove our config if docker start failed (#4260)
parent
740d8b0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/container-engine/docker/tasks/main.yml
+20
-5
20 additions, 5 deletions
roles/container-engine/docker/tasks/main.yml
with
20 additions
and
5 deletions
roles/container-engine/docker/tasks/main.yml
+
20
−
5
View file @
1e524c68
...
...
@@ -199,11 +199,26 @@
mode
:
0644
when
:
not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS", "ClearLinux", "RedHat", "Suse"] or is_atomic)
-
name
:
ensure service is started if docker packages are already present
service
:
name
:
docker
state
:
started
when
:
docker_task_result is not changed
-
name
:
ensure docker started, remove our config if docker start failed and try again
block
:
-
name
:
ensure service is started if docker packages are already present
service
:
name
:
docker
state
:
started
when
:
docker_task_result is not changed
rescue
:
-
debug
:
msg
:
"
Docker
start
failed.
Try
to
remove
our
config"
-
name
:
remove kubespray generated config
file
:
path
:
"
{{
item
}}"
state
:
absent
with_items
:
-
/etc/systemd/system/docker.service.d/http-proxy.conf
-
/etc/systemd/system/docker.service.d/docker-options.conf
-
/etc/systemd/system/docker.service.d/docker-dns.conf
-
/etc/systemd/system/docker.service.d/docker-orphan-cleanup.conf
notify
:
restart docker
-
name
:
flush handlers so we can wait for docker to come up
meta
:
flush_handlers
...
...
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