Use environment: to manipulate PATH and GOPATH env vars

Change-Id: I71567994b4e479d118a0f402b2120da23b4fbd4d
This commit is contained in:
Jonathan Rosser 2018-05-16 17:46:35 +01:00
parent dc43a27d4a
commit ebf309a9e7

View File

@ -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: