ansible-edda/playbooks/roles/services/deploy/rproxy/templates/systemd/container-rproxy-certbot.service.j2

25 lines
1.2 KiB
Plaintext
Raw Normal View History

[Unit]
Description=Podman container-rproxy-certbot.service
Documentation=man:podman-generate-systemd(1)
OnFailure=status-mail@%n.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/container-rproxy-certbot.pid %t/container-rproxy-certbot.ctr-id
2022-10-06 23:15:06 +02:00
ExecStartPre=/usr/bin/podman pull docker.io/certbot/certbot
2022-11-02 19:36:59 +01:00
ExecStart=/usr/bin/podman run \
--conmon-pidfile %t/container-rproxy-certbot.pid \
--cidfile %t/container-rproxy-certbot.ctr-id \
--cgroups=no-conmon \
--pod-id-file %t/pod-rproxy.pod-id \
--replace \
-v /etc/resolv.conf:/etc/resolv.conf:ro \
2022-12-18 00:05:58 +01:00
-v {{ services_data_directory }}/pod-rproxy/etc-letsencrypt/_data:/etc/letsencrypt \
2022-11-02 19:36:59 +01:00
-v var-lib-letsencrypt:/var/lib/letsencrypt \
-v var-www-html:/var/www/html \
--name=pod-rproxy-certbot \
docker.io/certbot/certbot --non-interactive renew
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-rproxy-certbot.ctr-id
Type=oneshot