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: