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
2788a020
Unverified
Commit
2788a020
authored
2 years ago
by
Ho Kim
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug in removing kubelet data dir (#9764)
parent
8a2e1189
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/reset/tasks/main.yml
+12
-2
12 additions, 2 deletions
roles/reset/tasks/main.yml
with
12 additions
and
2 deletions
roles/reset/tasks/main.yml
+
12
−
2
View file @
2788a020
...
...
@@ -257,14 +257,23 @@
-
enable_nodelocaldns|default(false)|bool
-
nodelocaldns_device.stat.exists
-
name
:
reset | find files/dirs with immutable flag in /var/lib/kubelet
-
name
:
reset | Check whether /var/lib/kubelet directory exists
stat
:
path
:
/var/lib/kubelet
get_attributes
:
no
get_checksum
:
no
get_mime
:
no
register
:
var_lib_kubelet_directory
-
name
:
reset | Find files/dirs with immutable flag in /var/lib/kubelet
command
:
lsattr -laR /var/lib/kubelet
become
:
true
register
:
var_lib_kubelet_files_dirs_w_attrs
changed_when
:
false
no_log
:
true
when
:
var_lib_kubelet_directory.stat.exists
-
name
:
reset |
r
emove immutable flag from files/dirs in /var/lib/kubelet
-
name
:
reset |
R
emove immutable flag from files/dirs in /var/lib/kubelet
file
:
path
:
"
{{
filedir_path
}}"
state
:
touch
...
...
@@ -275,6 +284,7 @@
label
:
"
{{
filedir_path
}}"
vars
:
filedir_path
:
"
{{
file_dir_line.split('
')[0]
}}"
when
:
var_lib_kubelet_directory.stat.exists
-
name
:
reset | delete some files and directories
file
:
...
...
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