Skip to content

Commit

Permalink
Go
Browse files Browse the repository at this point in the history
  • Loading branch information
adrw committed Nov 21, 2018
1 parent 2e729bb commit 8815456
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/plays/provision/mac_terminal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- vim
- ssh
- travis
- go
- iterm2
# - oh-my-zsh
# - mas
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/go/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go__path: "export PATH=$PATH:/Users/adrw/.homebrew/opt/go/libexec/bin"
Empty file added ansible/roles/go/files/.gitkeep
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions ansible/roles/go/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
galaxy_info:
author: Andrew Alexander
company:
license: MIT
min_ansible_version: 2.0
platforms:
- name: Darwin
versions:
- trusty
- vivid
- xenial
dependencies: []
14 changes: 14 additions & 0 deletions ansible/roles/go/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- name: Install Go
homebrew:
name: go
state: present
- blockinfile:
dest: "{{ home }}/.bashrc"
marker: "### {mark} Go"
content: "{{ go__path }}"
create: true
- blockinfile:
dest: "{{ home }}/.zshrc"
marker: "### {mark} Go"
content: "{{ go__path }}"
create: true
Empty file.
Empty file added ansible/roles/go/vars/.gitkeep
Empty file.

0 comments on commit 8815456

Please sign in to comment.