Skip to content
Snippets Groups Projects
Commit c20b3970 authored by ale's avatar ale
Browse files

Avoid text file busy when upgrading etcd binary

parent be92b070
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment