From 0231ee845e02f153b3745b6f3716f9b50306606a Mon Sep 17 00:00:00 2001 From: Karl Hepworth Date: Fri, 22 Sep 2017 09:58:13 +1000 Subject: [PATCH] Add a GOROOT remove task before copying the distro installation. Signed-off-by: Karl Hepworth --- tasks/install-distro.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/install-distro.yml b/tasks/install-distro.yml index 0ff0f56..1cb9778 100644 --- a/tasks/install-distro.yml +++ b/tasks/install-distro.yml @@ -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 }}/"