From 333c0b31fbf1018f65f60699b40b87e8b40d60a7 Mon Sep 17 00:00:00 2001 From: Tim Bo <7645199+timbrd@users.noreply.github.com> Date: Sun, 23 Aug 2020 16:50:40 +0200 Subject: [PATCH] Don't try to list certificate information when on ansible check mode In check mode ansible does not execute shell scripts, so there are no certificate information to show --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index ed42f37..9adcd12 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -229,4 +229,4 @@ - name: List acme.sh certificate information debug: msg: "{{ list_domains.stdout_lines }}" - when: acme_sh_list_domains and not acme_sh_uninstall + when: not ansible_check_mode and acme_sh_list_domains and not acme_sh_uninstall