This role will install logic to transfer the (renewed) certificates from the Certbot container to a directory easily accessible by a distribution-installed nginx.
8 lines
252 B
Django/Jinja
8 lines
252 B
Django/Jinja
#!/bin/bash
|
|
# {{ ansible_managed }}
|
|
|
|
MOUNT=$(podman volume inspect certbot-etc --format "{{ '{{' }} .Mountpoint {{ '}}' }}")
|
|
|
|
mkdir -p certbot-tx
|
|
cp -rL $MOUNT/live/* certbot-tx
|
|
sudo /usr/local/bin/move-certificate-files-to-root $(realpath certbot-tx)
|