ansible-edda/playbooks/roles/services/deploy/lrproxy/templates/systemd/rsync-certificates.service

13 lines
739 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Podman rsync-certificates.service
Documentation=man:rsync(1)
OnFailure=status-mail@%n.service
[Service]
Type=oneshot
2023-02-12 19:37:33 +01:00
ExecStart=/usr/bin/rsync -e 'ssh -i .ssh/{{ services_host_services.lrproxy.rproxy_host }}-{{ services_host_services.lrproxy.rproxy_user }} -l {{ services_host_services.lrproxy.rproxy_user }}' \
2022-11-02 20:03:12 +01:00
-avz \
--delete \
2023-02-12 19:37:33 +01:00
{{ hostvars[services_host_services.lrproxy.rproxy_host].vpn_wireguard_address }}:{{ hostvars[services_host_services.lrproxy.rproxy_host].services_data_directory }}/{{ services_host_services.lrproxy.rproxy_user }}/etc-letsencrypt/ \
{{ services_data_directory }}/pod-lrproxy/etc-letsencrypt