diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index 1d1f979..ec6b9c1 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -38,5 +38,7 @@ - certbot_create_standalone_stop_services - name: Generate new certificate if one doesn't exist. + become: true + become_user: "{{ certbot_auto_renew_user }}" command: "{{ certbot_create_command }}" when: not letsencrypt_cert.stat.exists