2018-09-11 14:14:02 +02:00
|
|
|
---
|
|
|
|
- name: install golang package
|
2018-10-15 09:40:09 +02:00
|
|
|
apt:
|
|
|
|
name: golang
|
|
|
|
state: latest
|
|
|
|
default_release: stretch-backports
|
2018-09-11 14:14:02 +02:00
|
|
|
|
|
|
|
- name: create GOPATH directory
|
|
|
|
file:
|
|
|
|
path: "{{ gopath }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: set GOPATH globally via profile.d
|
|
|
|
template:
|
|
|
|
src: go.sh.j2
|
|
|
|
dest: /etc/profile.d/go.sh
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2019-01-14 22:17:14 +01:00
|
|
|
|
|
|
|
- name: build dep util
|
|
|
|
shell: "GOPATH={{ gopath }} go get -v -u github.com/golang/dep/cmd/dep"
|