From c47775c2a9e7dbc61f14a69dc1d6a1b7c9edda78 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sat, 12 Jan 2019 19:33:47 -0500 Subject: [PATCH] we ignore errors for certificate generation to allow for repeat runs --- roles/mastodon-nginx/tasks/install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/mastodon-nginx/tasks/install.yml b/roles/mastodon-nginx/tasks/install.yml index c3aea0b..c77f35c 100644 --- a/roles/mastodon-nginx/tasks/install.yml +++ b/roles/mastodon-nginx/tasks/install.yml @@ -14,5 +14,6 @@ shell: cd /opt/acme.sh && ./acme.sh --install - name: Generate certificate using acme.sh shell: /root/.acme.sh/acme.sh --issue --standalone -d {{ LOCAL_DOMAIN }} --pre-hook "service nginx stop" + ignore_errors: yes - name: Install certificate in storage directory shell: /root/.acme.sh/acme.sh --install-cert -d {{ LOCAL_DOMAIN }} --key-file /etc/ssl/letsencrypt/{{ LOCAL_DOMAIN }}.pem --fullchain-file /etc/ssl/letsencrypt/{{ LOCAL_DOMAIN }}.crt --reloadcmd "service nginx restart"