mirror of
https://github.com/mpolden/echoip.git
synced 2025-06-26 12:47:50 +02:00
Add Ansible provisioning of Vagrant env
This commit is contained in:
1
provisioning/roles/golang/files/golang.sh
Normal file
1
provisioning/roles/golang/files/golang.sh
Normal file
@ -0,0 +1 @@
|
||||
test -d /usr/local/go/bin && export PATH=/usr/local/go/bin:$PATH
|
11
provisioning/roles/golang/tasks/main.yml
Normal file
11
provisioning/roles/golang/tasks/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: install golang
|
||||
shell: curl https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz | tar -zxC /usr/local
|
||||
creates=/usr/local/go
|
||||
|
||||
- name: configure path
|
||||
copy: src=golang.sh
|
||||
dest=/etc/profile.d/golang.sh
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
Reference in New Issue
Block a user