From ebf309a9e7716ede1131e1c4e5987fbe54f50353 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 16 May 2018 17:46:35 +0100 Subject: [PATCH] Use environment: to manipulate PATH and GOPATH env vars Change-Id: I71567994b4e479d118a0f402b2120da23b4fbd4d --- elk_metrics_6x/installJournalbeat.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/elk_metrics_6x/installJournalbeat.yml b/elk_metrics_6x/installJournalbeat.yml index 0ace3a02..b1cb702b 100644 --- a/elk_metrics_6x/installJournalbeat.yml +++ b/elk_metrics_6x/installJournalbeat.yml @@ -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: