diff --git a/lib/ansible/modules/crypto/openssl_certificate.py b/lib/ansible/modules/crypto/openssl_certificate.py index 29134b33caa..7492024e34f 100644 --- a/lib/ansible/modules/crypto/openssl_certificate.py +++ b/lib/ansible/modules/crypto/openssl_certificate.py @@ -779,6 +779,7 @@ class AcmeCertificate(Certificate): check_rc=True)[1] with open(self.path, 'wb') as certfile: certfile.write(to_bytes(crt)) + self.changed = True except OSError as exc: raise CertificateError(exc)