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
This commit is contained in:
Tim Bo 2020-08-23 16:50:40 +02:00 committed by GitHub
parent c8a90f6c57
commit 333c0b31fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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