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"
|
- "/etc/journalbeat"
|
||||||
|
|
||||||
- name: Install journalbeat
|
- name: Install journalbeat
|
||||||
shell: |
|
shell: /opt/go1.10.1/go/bin/go get -v github.com/mheese/journalbeat
|
||||||
. /etc/default/go1.10.1
|
environment:
|
||||||
/opt/go1.10.1/go/bin/go get -v github.com/mheese/journalbeat
|
PATH: "{{ ansible_env.PATH }}:/opt/go1.10.1/go/bin"
|
||||||
|
GOPATH: /usr/local
|
||||||
|
|
||||||
- name: Drop journalbeat conf file
|
- name: Drop journalbeat conf file
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user