Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
mediaserver
envsetup
Commits
d8859add
Commit
d8859add
authored
4 years ago
by
Antoine Schildknecht
Browse files
Options
Downloads
Patches
Plain Diff
Fix 'cmd' blocks syntax bug
parent
919e0505
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/letsencrypt/tasks/main.yml
+13
-13
13 additions, 13 deletions
ansible/roles/letsencrypt/tasks/main.yml
with
13 additions
and
13 deletions
ansible/roles/letsencrypt/tasks/main.yml
+
13
−
13
View file @
d8859add
...
...
@@ -12,7 +12,7 @@
register
:
letsencryt_nginx_output
shell
:
executable
:
/bin/bash
cmd
:
|
cmd
:
>
set -o pipefail
nginx -T 2>&1 | grep -v localhost | grep -P '^\s+server_name\s+.*;$' | sed -r 's/\s+server_name\s+(.*);/\1/' | uniq
...
...
@@ -66,12 +66,12 @@
register
:
letsencrypt_dry_run
ignore_errors
:
true
command
:
cmd
:
|
certbot certonly
\
--dry-run
\
-n --agree-tos -m {{ letsencrypt_email }}
\
--webroot -w {{ letsencrypt_webroot }}
\
--expand
\
cmd
:
>
certbot certonly
--dry-run
-n --agree-tos -m {{ letsencrypt_email }}
--webroot -w {{ letsencrypt_webroot }}
--expand
-d {{ letsencrypt_domains | join(',') }}
-
name
:
remove domains list file in case of failure
...
...
@@ -91,12 +91,12 @@
-
letsencrypt_save_list is changed
-
letsencrypt_dry_run is succeeded
command
:
cmd
:
|
certbot certonly
\
{% if letsencrypt_testing %}--staging{% endif %}
\
-n --agree-tos -m {{ letsencrypt_email }}
\
--webroot -w {{ letsencrypt_webroot }}
\
--expand
\
cmd
:
>
certbot certonly
{% if letsencrypt_testing %}--staging{% endif %}
-n --agree-tos -m {{ letsencrypt_email }}
--webroot -w {{ letsencrypt_webroot }}
--expand
-d {{ letsencrypt_domains | join(',') }}
-
name
:
update nginx certificate configuration
...
...
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