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
eb33f085
Commit
eb33f085
authored
8 years ago
by
Alexander Block
Browse files
Options
Downloads
Patches
Plain Diff
Changes according to code review
parent
00ad1511
Loading
Loading
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/reset/tasks/main.yml
+12
-3
12 additions, 3 deletions
roles/reset/tasks/main.yml
with
12 additions
and
3 deletions
roles/reset/tasks/main.yml
+
12
−
3
View file @
eb33f085
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
failed_when
:
false
failed_when
:
false
-
name
:
reset | remove services
-
name
:
reset | remove services
file
:
path="/etc/systemd/system/{{item}}" state=absent
file
:
path
:
"
/etc/systemd/system/{{
item
}}.service"
state
:
absent
with_items
:
with_items
:
-
kubelet
-
kubelet
-
etcd
-
etcd
...
@@ -27,7 +29,7 @@
...
@@ -27,7 +29,7 @@
-
name
:
reset | unmount kubelet dirs
-
name
:
reset | unmount kubelet dirs
command
:
umount {{item}}
command
:
umount {{item}}
with_items
:
'
{{mounted_dirs.stdout_lines}}'
with_items
:
'
{{
mounted_dirs.stdout_lines
|
reverse
}}'
-
name
:
reset | delete some files and directories
-
name
:
reset | delete some files and directories
file
:
path={{ item }} state=absent
file
:
path={{ item }} state=absent
...
@@ -35,4 +37,11 @@
...
@@ -35,4 +37,11 @@
-
/etc/kubernetes/
-
/etc/kubernetes/
-
/var/lib/kubelet
-
/var/lib/kubelet
-
/var/lib/etcd
-
/var/lib/etcd
-
/etc/ssl/etcd
-
/var/log/calico
-
/etc/cni
-
/etc/nginx
-
/etc/dnsmasq.d
-
/etc/etcd.env
-
/etc/calico
-
/opt/cni
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