aboutsummaryrefslogtreecommitdiff
path: root/roles/calibre/templates/cps.service.j2
diff options
context:
space:
mode:
authorGravatar meisterfischy <grbmn@kstn.in> 2022-01-22 17:17:33 +0100
committerGravatar meisterfischy <grbmn@kstn.in> 2022-01-22 17:17:33 +0100
commita28793b684b3299c95e04924ed18e0fe5cd6f107 (patch)
treeb91a6de277fd71f51f0e1ef9e9fdf1ff872c4104 /roles/calibre/templates/cps.service.j2
parent07fbef0c792f8a6d0bade63aa4ec7372391a8696 (diff)
downloadansible_collection-a28793b684b3299c95e04924ed18e0fe5cd6f107.tar.gz
Added a role for a calibre-web server
Diffstat (limited to 'roles/calibre/templates/cps.service.j2')
-rw-r--r--roles/calibre/templates/cps.service.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/calibre/templates/cps.service.j2 b/roles/calibre/templates/cps.service.j2
new file mode 100644
index 0000000..005297d
--- /dev/null
+++ b/roles/calibre/templates/cps.service.j2
@@ -0,0 +1,14 @@
+[Unit]
+Description=Calibre-Web
+
+[Service]
+Type=simple
+User=calibre
+{% if ssl == true %}
+ExecStart=/usr/local/bin/cps -c '/etc/ssl/certs/{{ ansible_facts.fqdn }}.pem' -k '/etc/ssl/private/{{ ansible_facts.fqdn }}.key'
+{% else %}
+ExecStart=/usr/local/bin/cps
+{% endif %}
+
+[Install]
+WantedBy=multi-user.target