Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
476 B

#!/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 %}