Переписал всё, сейчас вроде как отрабатывает без ошибок

This commit is contained in:
B4D_US3R 2025-08-02 09:57:37 +05:00
parent 436adfbc4f
commit 26f2ea374d
49 changed files with 1404 additions and 169 deletions

View file

@ -0,0 +1,15 @@
#!/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 %}