mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-20 09:11:43 +02:00
18 lines
466 B
Django/Jinja
18 lines
466 B
Django/Jinja
#!/bin/sh
|
|
# {{ ansible_managed }}
|
|
|
|
{% if ansible_service_mgr == 'systemd' %}
|
|
systemctl start {{ certbot_create_standalone_stop_services | join(" ") }}
|
|
{% else %}
|
|
{% for item in certbot_create_standalone_stop_services %}
|
|
echo "starting service {{ item }}"
|
|
{% if ansible_service_mgr == 'upstart' %}
|
|
initctl start {{ item }}
|
|
{% elif ansible_service_mgr == 'openrc' %}
|
|
rc-service {{ item }} start
|
|
{% else %}
|
|
service {{ item }} start
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|