From a28793b684b3299c95e04924ed18e0fe5cd6f107 Mon Sep 17 00:00:00 2001 From: meisterfischy Date: Sat, 22 Jan 2022 17:17:33 +0100 Subject: Added a role for a calibre-web server --- roles/calibre/templates/cps.service.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 roles/calibre/templates/cps.service.j2 (limited to 'roles/calibre/templates/cps.service.j2') 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 -- cgit v1.2.3