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
f1a98319
Commit
f1a98319
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting [skip-ci]
parent
8e56c705
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tasks/cert_generate.yml
+3
-3
3 additions, 3 deletions
tasks/cert_generate.yml
tasks/install.yml
+1
-1
1 addition, 1 deletion
tasks/install.yml
tasks/main.yml
+2
-2
2 additions, 2 deletions
tasks/main.yml
tasks/renew.yml
+3
-3
3 additions, 3 deletions
tasks/renew.yml
with
9 additions
and
9 deletions
tasks/cert_generate.yml
+
3
−
3
View file @
f1a98319
...
...
@@ -20,12 +20,12 @@
-
name
:
Install New Cert via webroot
shell
:
certbot certonly --expand --non-interactive --config /etc/letsencrypt/{{ cert.domain }}.ini --cert-name {{ cert.domain }} --webroot-path /var/www/html --webroot
ignore_errors
:
true
ignore_errors
:
yes
when
:
groups.proxyserver is not defined or inventory_hostname not in groups.proxyserver
-
name
:
Install New Cert via HaProxy
shell
:
certbot certonly --expand --non-interactive --config /etc/letsencrypt/{{ cert.domain }}.ini --http-01-port {{ port }} --preferred-challenges http-01 --cert-name {{ cert.domain }}
ignore_errors
:
true
ignore_errors
:
yes
when
:
groups.proxyserver is defined and inventory_hostname in groups.proxyserver
-
name
:
Close Port
...
...
@@ -44,7 +44,7 @@
name
:
'
{{
item
}}'
state
:
started
with_items
:
'
{{
letsencrypt_pause_services|default([])
}}'
ignore_errors
:
true
ignore_errors
:
yes
tags
:
-
ApacheConfig
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
1
−
1
View file @
f1a98319
...
...
@@ -27,4 +27,4 @@
-
/usr/local/bin/certbot
-
/usr/bin/certbot
ignore_errors
:
yes
failed_when
:
false
failed_when
:
no
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
2
View file @
f1a98319
...
...
@@ -18,8 +18,8 @@
stat
:
path
:
/etc/letsencrypt/live
register
:
letsencrypt_certs_available
failed_when
:
false
changed_when
:
false
failed_when
:
no
changed_when
:
no
tags
:
-
renew
...
...
This diff is collapsed.
Click to expand it.
tasks/renew.yml
+
3
−
3
View file @
f1a98319
...
...
@@ -21,14 +21,14 @@
-
name
:
Renew Existing Certs via webroot
shell
:
certbot renew --non-interactive --webroot-path /var/www/html --webroot
ignore_errors
:
true
ignore_errors
:
yes
register
:
renew_result
changed_when
:
"
'No
renewals
were
attempted.'
not
in
renew_result.stdout"
when
:
groups.proxyserver is not defined or inventory_hostname not in groups.proxyserver
-
name
:
Renew Existing Certs via HaProxy
shell
:
certbot renew --non-interactive --http-01-port {{ port }} --preferred-challenges http-01
ignore_errors
:
true
ignore_errors
:
yes
register
:
renew_result
changed_when
:
"
'No
renewals
were
attempted.'
not
in
renew_result.stdout"
when
:
groups.proxyserver is defined and inventory_hostname in groups.proxyserver
...
...
@@ -55,4 +55,4 @@
name
:
'
{{
item
}}'
state
:
started
with_items
:
'
{{
letsencrypt_pause_services|default([])
}}'
ignore_errors
:
true
ignore_errors
:
yes
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