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
025f21a0
Commit
025f21a0
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting
parent
f0170d5b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/cert_deploy.yml
+1
-1
1 addition, 1 deletion
tasks/cert_deploy.yml
tasks/install.yml
+2
-2
2 additions, 2 deletions
tasks/install.yml
tasks/main.yml
+31
-31
31 additions, 31 deletions
tasks/main.yml
with
36 additions
and
34 deletions
defaults/main.yml
+
2
−
0
View file @
025f21a0
---
letsencrypt_pause_services
:
[]
This diff is collapsed.
Click to expand it.
tasks/cert_deploy.yml
+
1
−
1
View file @
025f21a0
...
...
@@ -4,7 +4,7 @@
-
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
:
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 }}
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
2
−
2
View file @
025f21a0
...
...
@@ -21,8 +21,8 @@
-
name
:
Force certbot to use Python
3
lineinfile
:
path
:
'
{{
item
}}'
regexp
:
^#!/usr/bin/python$
line
:
#!/usr/bin/python3
regexp
:
'
^#!/usr/bin/python$
'
line
:
'
#!/usr/bin/python3
'
with_items
:
-
/usr/local/bin/certbot
-
/usr/bin/certbot
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
31
−
31
View file @
025f21a0
...
...
@@ -9,36 +9,36 @@
-
block
:
-
name
:
Ensure LetsEncrypt Directory
file
:
path
:
/etc/letsencrypt
state
:
directory
-
name
:
Check Existing Certs
stat
:
path
:
/etc/letsencrypt/live
register
:
letsencrypt_certs_available
failed_when
:
no
changed_when
:
no
tags
:
-
renew
-
import_tasks
:
install.yml
-
include_tasks
:
cert.yml
with_items
:
'
{{
letsencrypt_certificates|default([])
}}'
loop_control
:
loop_var
:
domain
tags
:
-
Certs
-
import_tasks
:
renew.yml
when
:
letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags
:
-
renew
-
import_tasks
:
../../haproxy/tasks/proxypool.yml
tags
:
-
renew
-
name
:
Ensure LetsEncrypt Directory
file
:
path
:
/etc/letsencrypt
state
:
directory
-
name
:
Check Existing Certs
stat
:
path
:
/etc/letsencrypt/live
register
:
letsencrypt_certs_available
failed_when
:
no
changed_when
:
no
tags
:
-
renew
-
import_tasks
:
install.yml
-
include_tasks
:
cert.yml
with_items
:
'
{{
letsencrypt_certificates|default([])
}}'
loop_control
:
loop_var
:
domain
tags
:
-
Certs
-
import_tasks
:
renew.yml
when
:
letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags
:
-
renew
-
import_tasks
:
../../haproxy/tasks/proxypool.yml
tags
:
-
renew
when
:
not excluded_roles or "letsencrypt" not in excluded_roles
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