forked from FF-RGB/ansible
go: make version configureable, use 1.8.5
This commit is contained in:
parent
c2c8acea51
commit
dc115c319b
3
roles/go/defaults/main.yml
Normal file
3
roles/go/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
go_version: 1.8.5
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Download and install go
|
- name: Download and install go
|
||||||
unarchive: src=https://storage.googleapis.com/golang/go1.8.1.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 copy=no
|
||||||
|
|
||||||
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user