|
|
@ -60,4 +60,9 @@ certbot_keep_updated: true |
|
|
|
certbot_dir: /opt/certbot |
|
|
|
certbot_dir: /opt/certbot |
|
|
|
|
|
|
|
|
|
|
|
# Restart this service after successfull certificate creation: |
|
|
|
# Restart this service after successfull certificate creation: |
|
|
|
certbot_deployhook: "service {{ certbot_create_standalone_stop_services | join(' restart && service ') }} restart" |
|
|
|
certbot_deployhook: | |
|
|
|
|
|
|
|
{% for service in certbot_create_standalone_stop_services %} |
|
|
|
|
|
|
|
if systemctl list-unit-files | grep -q "^{{ service }}.service"; then |
|
|
|
|
|
|
|
systemctl restart {{ service }} |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
{% endfor %} |
|
|
|