From 0d8bcbfd9a7f7ba4fd884c91e19835f8b3bf1a70 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 16 Oct 2019 14:54:24 +0100 Subject: Update pipeliner to update before running bookpipeline, and with latest urls --- roles/pipeliner/tasks/pipeline.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'roles/pipeliner/tasks') diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml index 293e581..7186f83 100644 --- a/roles/pipeliner/tasks/pipeline.yml +++ b/roles/pipeliner/tasks/pipeline.yml @@ -24,12 +24,16 @@ # Do this manually rather than relying on go get so that step can # be skipped if nothing has been changed - name: Get go repo - git: dest=/home/{{ ansible_user }}/src/go/src/rescribe.xyz/go.git repo=https://rescribe.xyz/go.git + git: dest=/home/{{ ansible_user }}/src/go/src/rescribe.xyz/{{ item }} repo=https://git.rescribe.xyz/{{ item }} become: no + with_items: + - bookpipeline + - preproc + - utils register: gorepo - name: Get and build bookpipeline and dependencies - command: go get rescribe.xyz/go.git/bookpipeline/... + command: go get -u rescribe.xyz/bookpipeline/... environment: GOPATH: /home/{{ ansible_user }}/src/go become: no @@ -40,13 +44,21 @@ remote_src: true src: /home/{{ ansible_user }}/src/go/bin/bookpipeline dest: /usr/local/bin/ + owner: root + group: root + mode: 0755 -- name: Make bookpipeline executable - file: path=/usr/local/bin/bookpipeline mode=0755 +- name: Install updatepipeline script + template: + src: updatepipeline.j2 + dest: /usr/local/bin/updatepipeline + owner: root + group: root + mode: 0755 - name: Install systemd unit file copy: src=bookpipeline.service dest=/etc/systemd/system notify: reload daemons -- name: Enable bookpipeline service +- name: Enable service service: name=bookpipeline enabled=true -- cgit v1.2.1-24-ge1ad