aboutsummaryrefslogtreecommitdiff
path: root/roles/calibre/templates/cps.service.j2
blob: 98e58c29980ca348da726bf30f31882df67206b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Calibre-Web

[Service]
Type=simple
User=calibre
{% if ssl == true %}
ExecStart=/opt/calibre/.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