Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
streampunk
ansible
Commits
c20b3970
Project 'ale/djrandom-py' was moved to 'ale/djrandom-py-deleted-112'. Please update any links and bookmarks that may still have the old path.
Commit
c20b3970
authored
3 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Avoid text file busy when upgrading etcd binary
parent
be92b070
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcd/tasks/install_from_github.yml
+5
-0
5 additions, 0 deletions
roles/etcd/tasks/install_from_github.yml
with
5 additions
and
0 deletions
roles/etcd/tasks/install_from_github.yml
+
5
−
0
View file @
c20b3970
...
@@ -33,6 +33,11 @@
...
@@ -33,6 +33,11 @@
dest
:
/tmp/etcd.tar.gz
dest
:
/tmp/etcd.tar.gz
when
:
do_install_etcd
when
:
do_install_etcd
# Avoid 'text file busy' when copying over running binary.
-
name
:
Move old etcd binary out of the way
shell
:
"
mv
-f
/usr/bin/etcd
/usr/bin/etcd.old"
when
:
"
do_install_etcd
and
etcd_bin.stat.exists"
# We really want to use 'tar' here and not unarchive because we need
# We really want to use 'tar' here and not unarchive because we need
# --strip-components.
# --strip-components.
-
name
:
Extract etcd binary and install contents
-
name
:
Extract etcd binary and install contents
...
...
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