Ansible-Roles/roles/certbot/templates/start_services.j2
2026-05-08 22:12:36 +03:00

16 lines
418 B
Django/Jinja

#!/bin/bash
# {{ ansible_managed }}
{% for item in certbot_create_standalone_stop_services %}
echo "starting service {{ item }}"
{% if ansible_facts.service_mgr == 'systemd' %}
systemctl start {{ item }}
{% elif ansible_facts.service_mgr == 'upstart' %}
initctl start {{ item }}
{% elif ansible_facts.service_mgr == 'openrc' %}
rc-service {{ item }} start
{% else %}
service {{ item }} start
{% endif %}
{% endfor %}