From 00dc2261017f17a73f2d380ab856edd99cdb4618 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 6 Dec 2018 16:15:09 -0600 Subject: [PATCH] Fixes E305 linting error: use shell only when required. --- tasks/create-cert-standalone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index 65c43bc..6f25b8a 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -12,7 +12,7 @@ with_items: "{{ certbot_create_standalone_stop_services }}" - name: Generate new certificate if one doesn't exist. - shell: "{{ certbot_create_command }}" + command: "{{ certbot_create_command }}" when: not letsencrypt_cert.stat.exists - name: Start services after cert has been generated.