diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-01-22 20:30:31 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-01-22 20:30:31 +0100 |
commit | 1c7ffdae0fa70e066dee294e11bc7569c429c321 (patch) | |
tree | 03eee786d902054515794294998c1b9574f5142e /roles/calibre/templates/cps.service.j2 | |
parent | d400f8820ad8e824ce454d9283e2bb8d6a28cdd3 (diff) | |
parent | ea10f2c231ba6fa4f77b20ff25993f87297b5952 (diff) | |
download | ansible_collection-1c7ffdae0fa70e066dee294e11bc7569c429c321.tar.gz |
Merge branch 'meisterfischy-calibre' into dev
Diffstat (limited to 'roles/calibre/templates/cps.service.j2')
-rw-r--r-- | roles/calibre/templates/cps.service.j2 | 14 |
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 |