Skip to content
Snippets Groups Projects
Commit d8859add authored by Antoine Schildknecht's avatar Antoine Schildknecht
Browse files

Fix 'cmd' blocks syntax bug

parent 919e0505
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment