summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/pipeliner/files/bookpipeline.service3
-rw-r--r--roles/pipeliner/handlers/main.yml4
-rw-r--r--roles/pipeliner/tasks/pipeline.yml3
3 files changed, 8 insertions, 2 deletions
diff --git a/roles/pipeliner/files/bookpipeline.service b/roles/pipeliner/files/bookpipeline.service
index 8a4dc45..7728912 100644
--- a/roles/pipeliner/files/bookpipeline.service
+++ b/roles/pipeliner/files/bookpipeline.service
@@ -2,5 +2,6 @@
Description=Book Pipeline
[Service]
-ExecStart=/usr/local/bin/bookpipeline
+ExecStart=/usr/local/bin/bookpipeline -v
Restart=always
+User=admin
diff --git a/roles/pipeliner/handlers/main.yml b/roles/pipeliner/handlers/main.yml
new file mode 100644
index 0000000..9e08d5e
--- /dev/null
+++ b/roles/pipeliner/handlers/main.yml
@@ -0,0 +1,4 @@
+---
+
+- name: reload daemons
+ shell: systemctl daemon-reload
diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml
index 88ee52f..f3ca30d 100644
--- a/roles/pipeliner/tasks/pipeline.yml
+++ b/roles/pipeliner/tasks/pipeline.yml
@@ -1,6 +1,6 @@
---
-# TODO: locally check out and build git repo, and upload from that
+# TODO: check out and build from repo, and copy into the right place
- name: Install pipeline tools
copy:
src: /home/nick/rescribe/2018-natphil/src/go/src/rescribe.xyz/go.git/bookpipeline/cmd/bookpipeline/bookpipeline
@@ -9,6 +9,7 @@
- name: Install systemd unit file
copy: src=bookpipeline.service dest=/etc/systemd/system
+ notify: reload daemons
- name: Enable bookpipeline service
service: name=bookpipeline enabled=true