From edcebb6ed273791005cf147d54af3e71f0b4cfb5 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 14 Oct 2020 21:40:36 -0400 Subject: Don't force by default. Check to see if the cert exists, not just the directory. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tasks') diff --git a/tasks/main.yml b/tasks/main.yml index b788abb..abcb785 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -74,7 +74,7 @@ fi {% for item in acmesh_domains %} - if ! [ -d "certs/{{item}}" ] || ! [ -z "$force" ] ; then + if ! [ -f "certs/{{item}}/{{item}}.cer" ] || ! [ -z "$force" ] ; then acme.sh {{acmesh_flags | replace('\n', ' ')}} \ $force \ --issue \ -- cgit v1.2.3