summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2018-08-21 14:16:28 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2018-08-21 14:16:28 -0700
commit79c7766da79765cf0f40fcecb30b99d8eb01fe8e (patch)
treed4ffd5c458ee9316075a2de2e65ce8c1f1ca01e4 /packer
parent15fd1dbd97713efc632a5542cc20dad0b322cc67 (diff)
Copy rebar3 instead of move
Copy rebar3 to /usr/bin instead of moving to be able to set the proper attributes. Change-Id: I1a873410c90250fb11702e3d45883a474176ebb2 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/local-docker.yaml8
1 files changed, 5 insertions, 3 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index f563608b5..8d5c5957c 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -128,9 +128,11 @@
args:
chdir: /tmp/rebar3
- - name: Move rebar3 to bin
- command: mv /tmp/rebar3/rebar3 /usr/bin/rebar3
- become: true
+ - name: Install rebar3 to bin
+ copy:
+ src: /tmp/rebar3/rebar3
+ dest: /usr/bin/rebar3
+ remote_src: true
- name: Remove unused rebar3 source
file: