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.
15 lines
396 B
15 lines
396 B
#!/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 %}
|
|
|