ansible-role-certbot/templates/start_services.j2
2025-08-20 20:56:29 -04:00

16 lines
389 B
Django/Jinja

#!/bin/bash
# {{ ansible_managed }}
{% for item in certbot_create_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 %}