From 6c46b72fa145119a91cc68b8077d32513d48e298 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sat, 12 Jan 2019 19:12:48 -0500 Subject: [PATCH] Use git clone method of acme.sh installation --- roles/mastodon-nginx/tasks/install.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/mastodon-nginx/tasks/install.yml b/roles/mastodon-nginx/tasks/install.yml index e170bbd..70bef6a 100644 --- a/roles/mastodon-nginx/tasks/install.yml +++ b/roles/mastodon-nginx/tasks/install.yml @@ -4,8 +4,14 @@ - name: Make TLS certificate storage directory file: name=/etc/ssl/letsencrypt/ state=directory +- name: Make sure /opt exists + file: name=/opt state=directory +- name: Clone acme.sh repository + git: + repo: https://github.com/Neilpang/acme.sh.git + dest: /opt/acme.sh - name: Install acme.sh - shell: wget -O - https://get.acme.sh | sh + shell: /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" - name: Install certificate in storage directory