* Move 'stop' services to pre-hook and post-hook. This way they will also be stopped and started when renewing. - remove service stop/start tasks - add pre-hook/post-hook templates - add pre-hook/pos-hook template tasks - create missing directories at first run - run pre and post hook during first manual runpull/80/head
parent
00dc226101
commit
8164566c4f
@ -0,0 +1,15 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# {{ ansible_managed }} |
||||||
|
|
||||||
|
{% for item in certbot_create_standalone_stop_services %} |
||||||
|
echo "starting service {{ item }}" |
||||||
|
{% if ansible_service_mgr == 'systemd' %} |
||||||
|
systemctl start {{ item }} |
||||||
|
{% elif ansible_service_mgr == 'upstart' %} |
||||||
|
initctl start {{ item }} |
||||||
|
{% elif ansible_service_mgr == 'openrc' %} |
||||||
|
rc-service {{ item }} start |
||||||
|
{% else %} |
||||||
|
service {{ item }} start |
||||||
|
{% endif %} |
||||||
|
{% endfor %} |
@ -0,0 +1,15 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# {{ ansible_managed }} |
||||||
|
|
||||||
|
{% for item in certbot_create_standalone_stop_services %} |
||||||
|
echo "stopping service {{ item }}" |
||||||
|
{% if ansible_service_mgr == 'systemd' %} |
||||||
|
systemctl stop {{ item }} |
||||||
|
{% elif ansible_service_mgr == 'upstart' %} |
||||||
|
initctl stop {{ item }} |
||||||
|
{% elif ansible_service_mgr == 'openrc' %} |
||||||
|
rc-service {{ item }} stop |
||||||
|
{% else %} |
||||||
|
service {{ item }} stop |
||||||
|
{% endif %} |
||||||
|
{% endfor %} |
Loading…
Reference in new issue