Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Install golang 1.8.1 with ansible

Cette révision appartient à :
tomleb 2017-05-13 21:12:06 -04:00
Parent 24fe8f2689
révision bd8cf8cfcd
3 fichiers modifiés avec 19 ajouts et 0 suppressions

Voir le fichier

@ -0,0 +1,17 @@
- name: Download Golang
get_url:
url: "https://storage.googleapis.com/golang/go{{ golang_version }}.linux-amd64.tar.gz"
dest: /tmp/golang.tar.gz
- name: Unzip golang
unarchive:
src: /tmp/golang.tar.gz
dest: /usr/local/
remote_src: True
become: true
- name: Add go to PATH
lineinfile:
path: ~/.bashrc
regexp: 'export PATH='
line: 'export PATH=$PATH:/usr/local/go/bin'

Voir le fichier

@ -0,0 +1 @@
golang_version: 1.8.1

Voir le fichier

@ -2,6 +2,7 @@
hosts: webservers
roles:
- docker
- golang
- name: Set up databases
hosts: dbs