Skip to content
Snippets Groups Projects
Commit 7c57e772 authored by Chirayu Desai's avatar Chirayu Desai
Browse files

Fix start/stop template

* Not ideal, but this is only temporary anyway
parent d1d517c5
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# {{ ansible_managed }}
{% for item in certbot_create_standalone_stop_services %}
echo "starting service {{ item }}"
echo "starting services {{ certbot_create_standalone_stop_services }}"
{% if ansible_service_mgr == 'systemd' %}
systemctl start {{ item }}
systemctl start {{ certbot_create_standalone_stop_services }}
{% elif ansible_service_mgr == 'upstart' %}
initctl start {{ item }}
initctl start {{ certbot_create_standalone_stop_services }}
{% elif ansible_service_mgr == 'openrc' %}
rc-service {{ item }} start
rc-service {{ certbot_create_standalone_stop_services }} start
{% else %}
service {{ item }} start
service {{ certbot_create_standalone_stop_services }} start
{% endif %}
{% endfor %}
#!/bin/bash
# {{ ansible_managed }}
{% for item in certbot_create_standalone_stop_services %}
echo "stopping service {{ item }}"
echo "stopping services {{ certbot_create_standalone_stop_services }}"
{% if ansible_service_mgr == 'systemd' %}
systemctl stop {{ item }}
systemctl stop {{ certbot_create_standalone_stop_services }}
{% elif ansible_service_mgr == 'upstart' %}
initctl stop {{ item }}
initctl stop {{ certbot_create_standalone_stop_services }}
{% elif ansible_service_mgr == 'openrc' %}
rc-service {{ item }} stop
rc-service {{ certbot_create_standalone_stop_services }} stop
{% else %}
service {{ item }} stop
service {{ certbot_create_standalone_stop_services }} stop
{% endif %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment