diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-10-14 21:40:36 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-10-14 21:40:36 -0400 |
| commit | edcebb6ed273791005cf147d54af3e71f0b4cfb5 (patch) | |
| tree | fa84dfa39cd17c16b818ecbc83fadd031847f0af /tasks | |
| parent | 22edab4638df31df0059a881e5b7f39ffd84a85d (diff) | |
| download | acme.sh-edcebb6ed273791005cf147d54af3e71f0b4cfb5.tar.gz acme.sh-edcebb6ed273791005cf147d54af3e71f0b4cfb5.tar.xz | |
Don't force by default. Check to see if the cert exists, not just the directory.
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 \ |
