summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/pipeliner/tasks/pipeline.yml10
1 files 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