From 005fd47b1ae1fd2e3afd5e8fae3a85500c42f266 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 17 Jan 2018 11:35:24 +0100 Subject: [PATCH] Only fetch and unpack go if binary is missing --- roles/go/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/go/tasks/main.yml b/roles/go/tasks/main.yml index 8ce00a2..ac43844 100644 --- a/roles/go/tasks/main.yml +++ b/roles/go/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Download and install go - unarchive: src=https://dl.google.com/go/go{{ go_version }}.linux-amd64.tar.gz dest=/usr/local copy=no + unarchive: src=https://dl.google.com/go/go{{ go_version }}.linux-amd64.tar.gz dest=/usr/local remote_src=yes creates=/usr/local/go/bin/go - name: Configure go copy: src=go.sh dest=/etc/profile.d/go.sh