Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lets Encrypt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
Lets Encrypt
Commits
cd514817
Commit
cd514817
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
CRC-641 Automatically update SSL certificates from LetsEncrypt
parent
568d4966
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
tasks/main.yml
+6
-0
6 additions, 0 deletions
tasks/main.yml
tasks/renew.yml
+18
-0
18 additions, 0 deletions
tasks/renew.yml
with
25 additions
and
0 deletions
defaults/main.yml
0 → 100644
+
1
−
0
View file @
cd514817
letsencrypt_pause_services
:
[]
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
6
−
0
View file @
cd514817
...
...
@@ -6,8 +6,14 @@
shell
:
ls /opt/letsencrypt/letsencrypt-auto
register
:
letsencrypt_available
failed_when
:
false
changed_when
:
false
tags
:
'
always'
-
include
:
install.yml
when
:
letsencrypt_available is defined and letsencrypt_available.stdout != '/opt/letsencrypt/letsencrypt-auto'
-
include
:
renew.yml
when
:
letsencrypt_available is defined and letsencrypt_available.stdout == '/opt/letsencrypt/letsencrypt-auto'
tags
:
'
renew'
when
:
'
"letsencrypt"
not
in
excluded_roles'
This diff is collapsed.
Click to expand it.
tasks/renew.yml
0 → 100644
+
18
−
0
View file @
cd514817
---
# file: roles/letsencrypt/tasks/renew.yml
-
name
:
"
Stop
services"
service
:
name='{{ item }}'
state='stopped'
with_items
:
'
{{
letsencrypt_pause_services
}}'
-
name
:
"
Renew
Existing
Certs"
shell
:
/opt/letsencrypt/letsencrypt-auto renew
ignore_errors
:
true
-
name
:
"
Start
services"
service
:
name='{{ item }}'
state='started'
with_items
:
'
{{
letsencrypt_pause_services
}}'
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