Skip to content

Commit

Permalink
Move shell exports declaration to after the GOROOT and GOPATH declara…
Browse files Browse the repository at this point in the history
…tions.
  • Loading branch information
fubarhouse committed Jan 11, 2018
1 parent f7c5c9b commit be816f8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tasks/setup.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
---

- name: "Go-Lang | Define shell exports"
set_fact:
shell_exports:
- regex: "export GOROOT"
lineinfile: "export GOROOT={{ GOROOT }}"
- regex: "export GOPATH"
lineinfile: "export GOPATH={{ GOPATH }}"
- regex: "PATH:{{ GOROOT }}/bin"
lineinfile: "export PATH=$PATH:{{ GOROOT }}/bin"
- regex: "PATH:{{ GOPATH }}/bin"
lineinfile: "export PATH=$PATH:{{ GOPATH }}/bin"
when: shell_exports is not defined

- name: "Go-Lang | Define user variable for ssh use"
set_fact:
fubarhouse_user: "{{ ansible_ssh_user }}"
Expand Down Expand Up @@ -68,6 +55,19 @@
- GOROOT is defined
- GOPATH is not defined

- name: "Go-Lang | Define shell exports"
set_fact:
shell_exports:
- regex: "export GOROOT"
lineinfile: "export GOROOT={{ GOROOT }}"
- regex: "export GOPATH"
lineinfile: "export GOPATH={{ GOPATH }}"
- regex: "PATH:{{ GOROOT }}/bin"
lineinfile: "export PATH=$PATH:{{ GOROOT }}/bin"
- regex: "PATH:{{ GOPATH }}/bin"
lineinfile: "export PATH=$PATH:{{ GOPATH }}/bin"
when: shell_exports is not defined

- name: "Go-Lang | Define GOROOT_BOOTSTRAP"
set_fact:
GOROOT_BOOTSTRAP: /usr/local/go1.4
Expand Down

0 comments on commit be816f8

Please sign in to comment.