--- - name: Issue certificate for {{ certificate_name }} command: cmd: >- certbot certonly --non-interactive --cert-name {{ certificate_name | quote }} --must-staple --disable-hook-validation --post-hook {{ ( '(' + (all_reload_commands | join(') && (')) + ')' ) | quote }} {% for d in domains %} --domain {{ d | quote }} {% endfor %} creates: "{{ acme_certificate_location }}" tags: cert_change