Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
drupal
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
drupal
Commits
021f2b5a
Commit
021f2b5a
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Optimize LetsEncrypt and use their role also for HaProxy and Drupal tasks
parent
58f35d23
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/letsencrypt.yml
+0
-13
0 additions, 13 deletions
tasks/letsencrypt.yml
tasks/main.yml
+2
-2
2 additions, 2 deletions
tasks/main.yml
templates/letsencrypt.ini
+1
-0
1 addition, 0 deletions
templates/letsencrypt.ini
with
3 additions
and
15 deletions
tasks/letsencrypt.yml
deleted
100644 → 0
+
0
−
13
View file @
58f35d23
---
# file: roles/drupal/tasks/letsencrypt.yml
-
set_fact
:
filename='/etc/letsencrypt/live/{{ item.1.domain }}/cert.pem'
-
name
:
"
Check
LetsEncrypt
Requirement"
shell
:
ls {{ filename }}
register
:
cert_available
failed_when
:
false
-
name
:
"
Install
New
Cert"
shell
:
/opt/letsencrypt/letsencrypt-auto certonly -d {{ item.1.domain }} --apache --text --email {{ apache_server_admin }} --agree-tos --redirect --expand --non-interactive
when
:
cert_available is defined and cert_available.stdout != filename
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
2
View file @
021f2b5a
...
...
@@ -5,8 +5,8 @@
set_fact
:
role_drupal_started=true
-
block
:
-
name
:
"
LetsEncrypt
Certificate
s"
include
:
letsencrypt.yml
-
name
:
"
Install
Cert
s"
include
:
'
../../
letsencrypt
/tasks/cert
.yml
'
with_subelements
:
-
'
{{
drupal_settings
}}'
-
domains
...
...
This diff is collapsed.
Click to expand it.
templates/letsencrypt.ini
0 → 120000
+
1
−
0
View file @
021f2b5a
../../letsencrypt/templates/letsencrypt.ini
\ No newline at end of file
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