diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-09-20 18:42:58 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-09-20 18:42:58 +0200 |
commit | ce6e646a89512b051b5f85d6364498f1e736c976 (patch) | |
tree | 74e945b70e81d08c5115fd6d66ad91e29dc635ab /roles/calibre | |
parent | e9c29b66cd2b2f161303d565acc495bb17943845 (diff) | |
parent | 27ae97425280c5d9a9069625401f44f2908af1e6 (diff) | |
download | ansible_collection-ce6e646a89512b051b5f85d6364498f1e736c976.tar.gz |
Merge branch 'lauch' of giteaprod-01.my.cum.re:infra/ansible-kompetenzbolzen-stuff into lauch
Diffstat (limited to 'roles/calibre')
-rw-r--r-- | roles/calibre/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/calibre/templates/cps.service.j2 | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/calibre/tasks/main.yml b/roles/calibre/tasks/main.yml index d3b0d06..58ae99a 100644 --- a/roles/calibre/tasks/main.yml +++ b/roles/calibre/tasks/main.yml @@ -47,6 +47,7 @@ pip: name: calibreweb[{{ features | join(",") }}] become: true + become_user: calibre - name: Create systemd unit template: diff --git a/roles/calibre/templates/cps.service.j2 b/roles/calibre/templates/cps.service.j2 index 005297d..98e58c2 100644 --- a/roles/calibre/templates/cps.service.j2 +++ b/roles/calibre/templates/cps.service.j2 @@ -5,7 +5,7 @@ Description=Calibre-Web 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' +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 %} |