diff options
Diffstat (limited to 'roles/pipeliner/tasks')
-rw-r--r-- | roles/pipeliner/tasks/pipeline.yml | 22 |
1 files changed, 17 insertions, 5 deletions
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 |