forked from filswan/fs3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fs3_dependencies.yaml
55 lines (51 loc) · 1.44 KB
/
fs3_dependencies.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
- hosts: localhost
tasks:
# install dependent packages
- name: Install software-properties-common to have an abstraction of the used apt repositorie
apt:
name: software-properties-common
state: present
become: yes
- name: Add golang stable repository from PPA and install its signing key on Ubuntu target
apt_repository:
repo: ppa:longsleep/golang-backports
become: yes
- name: Update and upgrade apt packages
apt:
upgrade: yes
update_cache: yes
become: yes
- name: Install apt dependencies
apt:
name:
[
"golang-go",
"software-properties-common",
"libxext-dev",
"libpng-dev",
"libimlib2-dev",
"libglew-dev",
"libxrender-dev",
"libxrandr-dev",
"libglm-dev",
"libhwloc-dev"
]
state: latest
become: yes
# Configure Go
- name: Create directories for Go
file:
path: ~/{{item.0}}/{{item.1}}
state: directory
with_nested:
- ['go', 'bin']
- ['go', 'src']
- ['go', 'pkg']
- name: Add enviromental variables
shell:
cmd: |
echo 'export GOPATH="$HOME/go"' >> ~/.bashrc
echo 'export PATH="$PATH:${GOPATH//://bin:}/bin"' >> ~/.bashrc
source ~/.bashrc
args:
executable: /bin/bash