From 183be5005efe8209ef947aa8a26e213c0ced4750 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 20 Nov 2021 19:55:50 +0000 Subject: Use newer go install than is in debian repos --- roles/pipeliner/tasks/pipeline.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml index 9572c60..38c2a01 100644 --- a/roles/pipeliner/tasks/pipeline.yml +++ b/roles/pipeliner/tasks/pipeline.yml @@ -7,9 +7,11 @@ update_cache: yes - name: Install golang - apt: - name: golang-go - state: present + ansible.builtin.unarchive: + src: https://golang.org/dl/go1.17.3.linux-amd64.tar.gz + dest: /usr/local + remote_src: yes + become: yes - name: Get go repo git: @@ -20,7 +22,7 @@ - name: Get and build bookpipeline and dependencies command: - cmd: go install ./cmd/bookpipeline + cmd: /usr/local/go/bin/go install ./cmd/bookpipeline chdir: /home/{{ ansible_user }}/src/bookpipeline become: no -- cgit v1.2.1-24-ge1ad