diff --git a/tasks/test-cert-exists.yml b/tasks/test-cert-exists.yml index 3c44ba1..91e9d26 100644 --- a/tasks/test-cert-exists.yml +++ b/tasks/test-cert-exists.yml @@ -9,8 +9,8 @@ path: /etc/letsencrypt/domains-{{ cert_item.domains | first | replace('*.', '') }}.json line: " {{ cert_item.domains | to_json }}" state: present - create: yes - check_mode: yes + create: true + check_mode: true register: letsencrypt_cert_contents when: letsencrypt_cert_exists.stat.exists