From 98c877a8ce1c3e8553222b3af0caada06e33df07 Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 17 Mar 2022 09:48:29 +0100 Subject: [PATCH] quoting --- roles/mastodon/tasks/system_setup/letsencrypt.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mastodon/tasks/system_setup/letsencrypt.yml b/roles/mastodon/tasks/system_setup/letsencrypt.yml index 9de2003..069e2a2 100644 --- a/roles/mastodon/tasks/system_setup/letsencrypt.yml +++ b/roles/mastodon/tasks/system_setup/letsencrypt.yml @@ -1,5 +1,5 @@ --- -- stat: path=/etc/letsencrypt/live/{{ mastodon_host | default({{ ansible_fqdn }}) }}/fullchain.pem +- stat: path=/etc/letsencrypt/live/{{ mastodon_host | default('{{ ansible_fqdn }}') }}/fullchain.pem register: letsencrypt_cert - name: Copy letsencrypt nginx config @@ -17,7 +17,7 @@ command: "systemctl reload nginx" - name: Install letsencrypt cert - command: letsencrypt certonly -n --webroot -d {{ mastodon_host | default({{ ansible_fqdn }}) }} -w {{ mastodon_home }}/{{ mastodon_path }}/public/ --email "webmaster@{{ mastodon_host | default({{ ansible_fqdn }}) }}" --agree-tos && systemctl reload nginx + command: letsencrypt certonly -n --webroot -d {{ mastodon_host | default('{{ ansible_fqdn }}') }} -w {{ mastodon_home }}/{{ mastodon_path }}/public/ --email "webmaster@{{ mastodon_host | default('{{ ansible_fqdn }}') }}" --agree-tos && systemctl reload nginx when: not letsencrypt_cert.stat.exists - name: Letsencrypt Job