Only fetch and unpack go if binary is missing

This commit is contained in:
Markus 2018-01-17 11:35:24 +01:00
parent dc115c319b
commit 005fd47b1a
1 changed files with 1 additions and 1 deletions

View File

@ -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