From 91eb136a5cc68e0f69621eb939d92f5eb743f3f7 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 2 Sep 2019 14:49:19 +0100 Subject: Add pipeliner role --- roles/pipeliner/files/bookpipeline.service | 6 ++++++ roles/pipeliner/tasks/main.yml | 2 ++ roles/pipeliner/tasks/pipeline.yml | 11 +++++++++++ 3 files changed, 19 insertions(+) create mode 100644 roles/pipeliner/files/bookpipeline.service create mode 100644 roles/pipeliner/tasks/main.yml create mode 100644 roles/pipeliner/tasks/pipeline.yml diff --git a/roles/pipeliner/files/bookpipeline.service b/roles/pipeliner/files/bookpipeline.service new file mode 100644 index 0000000..8a4dc45 --- /dev/null +++ b/roles/pipeliner/files/bookpipeline.service @@ -0,0 +1,6 @@ +[Unit] +Description=Book Pipeline + +[Service] +ExecStart=/usr/local/bin/bookpipeline +Restart=always diff --git a/roles/pipeliner/tasks/main.yml b/roles/pipeliner/tasks/main.yml new file mode 100644 index 0000000..d9b6830 --- /dev/null +++ b/roles/pipeliner/tasks/main.yml @@ -0,0 +1,2 @@ +--- +- include: pipeline.yml diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml new file mode 100644 index 0000000..852b84b --- /dev/null +++ b/roles/pipeliner/tasks/pipeline.yml @@ -0,0 +1,11 @@ +--- + +# TODO: locally check out and build git repo, and upload from that +- name: Install pipeline tools + copy: src=/home/nick/rescribe/2018-natphil/src/go/src/rescribe.xyz/go.git/bookpipeline/cmd/bookpipeline dest=/usr/local/bin + +- name: Install systemd unit file + copy: src=bookpipeline.service dest=/etc/systemd/system + +- name: Enable bookpipeline service + service: name=bookpipeline enabled=true -- cgit v1.2.1-24-ge1ad