Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible-role-certbot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Calyx Institute
CalyxOS
ansible-role-certbot
Commits
7c57e772
Commit
7c57e772
authored
3 years ago
by
Chirayu Desai
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/start_services.j2
+5
-7
5 additions, 7 deletions
templates/start_services.j2
templates/stop_services.j2
+5
-7
5 additions, 7 deletions
templates/stop_services.j2
with
10 additions
and
14 deletions
templates/start_services.j2
+
5
−
7
View file @
7c57e772
#!/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 %
}
This diff is collapsed.
Click to expand it.
templates/stop_services.j2
+
5
−
7
View file @
7c57e772
#!/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 %
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment