mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 15:13:20 +02:00
12 lines
476 B
Plaintext
12 lines
476 B
Plaintext
![]() |
#!/bin/bash
|
||
|
|
||
|
{% if pve_letsencrypt %}
|
||
|
if [ $1 == "{{ inventory_hostname }}" ]; then
|
||
|
cat /var/lib/dehydrated/certificates/certs/{{ inventory_hostname }}/privkey.pem > /etc/pve/local/pveproxy-ssl.key
|
||
|
cat /var/lib/dehydrated/certificates/certs/{{ inventory_hostname }}/fullchain.pem > /etc/pve/local/pveproxy-ssl.pem
|
||
|
chown root:www-data /etc/pve/local/pveproxy-ssl.{key,pem}
|
||
|
chmod 640 /etc/pve/local/pveproxy-ssl.{key,pem}
|
||
|
/bin/systemctl reload pveproxy
|
||
|
fi
|
||
|
{% endif %}
|