From be816f84acfe420a74649a6c9c03f9614fbe8ab3 Mon Sep 17 00:00:00 2001 From: Karl Hepworth Date: Thu, 11 Jan 2018 22:34:36 +1100 Subject: [PATCH] Move shell exports declaration to after the GOROOT and GOPATH declarations. --- tasks/setup.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tasks/setup.yml b/tasks/setup.yml index 5ac9c6a..0c44370 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -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 }}" @@ -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