From eb162bdf7f0b29ef0cc29bbb20c0fa871519910e Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 26 Feb 2018 15:15:17 +0100 Subject: [PATCH] Add space between arguments for acme-tiny (#36739) Currently, the module fail with a error saying that --acme-dir is mandatory. Looking at the commandline: /usr/sbin/acme-tiny --chain --account-key /srv/letsencrypt/acme_key/acme.key --csr /srv/letsencrypt/nginx_certs/www.example.org.csr--acme-dir /srv/letsencrypt/webroot", We can see that the space before --acme-dir is missing. --- lib/ansible/modules/crypto/openssl_certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/crypto/openssl_certificate.py b/lib/ansible/modules/crypto/openssl_certificate.py index 7d62a8cd49..cb025c286f 100644 --- a/lib/ansible/modules/crypto/openssl_certificate.py +++ b/lib/ansible/modules/crypto/openssl_certificate.py @@ -758,7 +758,7 @@ class AcmeCertificate(Certificate): chain = '--chain' try: - crt = module.run_command("%s %s --account-key %s --csr %s" + crt = module.run_command("%s %s --account-key %s --csr %s " "--acme-dir %s" % (acme_tiny_path, chain, self.accountkey_path, self.csr_path,