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

View File

@ -1,7 +1,7 @@
--- ---
- name: Download and install go - 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 - name: Configure go
copy: src=go.sh dest=/etc/profile.d/go.sh copy: src=go.sh dest=/etc/profile.d/go.sh