Use environment: to manipulate PATH and GOPATH env vars
Change-Id: I71567994b4e479d118a0f402b2120da23b4fbd4d
This commit is contained in:
parent
dc43a27d4a
commit
ebf309a9e7
@ -74,9 +74,10 @@
|
||||
- "/etc/journalbeat"
|
||||
|
||||
- name: Install journalbeat
|
||||
shell: |
|
||||
. /etc/default/go1.10.1
|
||||
/opt/go1.10.1/go/bin/go get -v github.com/mheese/journalbeat
|
||||
shell: /opt/go1.10.1/go/bin/go get -v github.com/mheese/journalbeat
|
||||
environment:
|
||||
PATH: "{{ ansible_env.PATH }}:/opt/go1.10.1/go/bin"
|
||||
GOPATH: /usr/local
|
||||
|
||||
- name: Drop journalbeat conf file
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user