summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-11-20 19:55:50 +0000
committerNick White <git@njw.name>2021-11-20 19:55:50 +0000
commit183be5005efe8209ef947aa8a26e213c0ced4750 (patch)
treecf640766417702604b2f2409da7a8469c760d886 /roles
parentc6255f0386d1fa11987f29bcd92aadc1971e56f7 (diff)
Use newer go install than is in debian repos
Diffstat (limited to 'roles')
-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