initial commit
This commit is contained in:
27
templates/renew_certs.j2
Normal file
27
templates/renew_certs.j2
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for domain in acme_hosts %}
|
||||
|
||||
# domain {{domain.domain}}
|
||||
/usr/local/bin/acme-client {{domain.domain}}
|
||||
RETURN=$?
|
||||
if [ $RETURN -eq 0 ]
|
||||
then
|
||||
{% if domain.reload_command is defined %}
|
||||
# reload command
|
||||
{{domain.reload_command}}
|
||||
{% else %}
|
||||
# no reload command defined
|
||||
:
|
||||
{% endif %}
|
||||
elif [ $RETURN -eq 2 ]
|
||||
then
|
||||
# clean
|
||||
:
|
||||
else
|
||||
# error
|
||||
:
|
||||
fi
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user