-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
41 lines (39 loc) · 1.11 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# Use it to get correct path
users:
- username: "{{ ansible_user_id }}"
home: "/home/{{ ansible_user_id }}"
pip_packages: []
pip_packages_force: [virtualenv]
# Versions
node_version: lts # semantic version | lts | (latest / current)
yarn_version: latest # semantic version | latest
golang_version: latest # tag vX.X.X | latest
# any other location don't work
go_root: "/opt/go/go-{{ golang_version }}"
go_path: "/opt/go/packages"
# can't install golang packages without this
go_modules: True
cgo_enabled: True
# !!! Warning don't redefine this object !!!
go_env:
GOPATH: "{{ go_path }}"
GOROOT: "{{ go_root }}"
PATH: "{{ ansible_env.PATH }}:{{ go_path }}/bin"
GO111MODULE: "{{ 'off' if not go_modules else 'on' }}"
CGO_ENABLED: "{{ 0 if not cgo_enabled else 1 }}"
# [{
# name: package_name,
# version: git version,
# flags: build flags,
# deps : [] # list of deps used during build
# }]
golang_packages: []
# ex :
# - name: github.com/gohugoio/hugo
# version: v0.76.3
# flags: '--tags extended,other-tag'
# deps:
# - gcc # for libsass
# - g++ # same
# state: "absent" or "present"