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
eb8bf766
Commit
eb8bf766
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Allow deploy tasks after create and renew actions
parent
7987a10c
No related branches found
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
tasks/cert_deploy.yml
+23
-0
23 additions, 0 deletions
tasks/cert_deploy.yml
tasks/cert_generate.yml
+2
-0
2 additions, 0 deletions
tasks/cert_generate.yml
tasks/renew.yml
+5
-0
5 additions, 0 deletions
tasks/renew.yml
with
30 additions
and
0 deletions
tasks/cert_deploy.yml
0 → 100644
+
23
−
0
View file @
eb8bf766
---
# file: roles/letsencrypt/tasks/cert_deploy.yml
-
block
:
-
name
:
"
Deploy
Cert"
shell
:
'
openssl
{{
cert.export.type
}}
-export
-out
/tmp/{{
cert.domain
}}.deploy
-inkey
privkey.pem
-in
cert.pem
-certfile
chain.pem
-password
pass:'
args
:
chdir
:
'
/etc/letsencrypt/live/{{
cert.domain
}}'
-
name
:
"
Attribute
deployed
cert"
copy
:
src
:
'
/tmp/{{
cert.domain
}}.deploy'
dest
:
'
{{
cert.export.dest
}}'
remote_src
:
yes
owner
:
'
{{
cert.export.owner
}}'
group
:
'
{{
cert.export.group
}}'
when
:
cert.export is defined
tags
:
-
'
ApacheConfig'
-
'
Certs'
-
'
renew'
This diff is collapsed.
Click to expand it.
tasks/cert_generate.yml
+
2
−
0
View file @
eb8bf766
...
...
@@ -31,6 +31,8 @@
jump
:
'
ACCEPT'
state
:
'
absent'
-
include_tasks
:
cert_deploy.yml
-
name
:
"
Start
services"
service
:
name
:
'
{{
item
}}'
...
...
This diff is collapsed.
Click to expand it.
tasks/renew.yml
+
5
−
0
View file @
eb8bf766
...
...
@@ -33,6 +33,11 @@
jump
:
'
ACCEPT'
state
:
'
absent'
-
include_tasks
:
cert_deploy.yml
with_items
:
'
{{
letsencrypt_certificates|default([])
}}'
loop_control
:
loop_var
:
cert
-
name
:
"
Build
HaProxy
Certs"
import_tasks
:
'
../../haproxy/tasks/buildcerts.yml'
tags
:
'
always'
...
...
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