Skip to content

Commit

Permalink
Add a GOROOT remove task before copying the distro installation.
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Hepworth <Karl.Hepworth@education.gov.au>
  • Loading branch information
Karl Hepworth authored and Karl Hepworth committed Sep 21, 2017
1 parent ebf61f3 commit 0231ee8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/install-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
dest: "{{ go_temporary_dir }}"
copy: "no"

- name: "Go-Lang | Removing existing installation"
shell: "rm -rf {{ GOROOT }}/*"

- name: "Go-Lang | Moving to installation directory"
shell: "cp -rf {{ go_temporary_dir }}/go/* {{ GOROOT }}/"

Expand Down

0 comments on commit 0231ee8

Please sign in to comment.