Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Remove staging from the cert generation command
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fernandez committed Jul 8, 2017
1 parent 97b0097 commit 3fb0fdc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ansible/roles/services/apache/tasks/generate_certificate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
path: "/opt/dockerapps/{{ instance_name }}/letsencrypt/live/{{ site.subdomain }}.{{ domain }}/"
register: certs_directory

# this doesn't work if using docker_container
# For some reason this doesn't work if using docker_container
- name: "Generate SSL cert for {{ site.subdomain }}"
shell: "/usr/bin/docker run -i --rm --name certbot -p 443:443 -v /opt/dockerapps/{{ instance_name }}/letsencrypt:/etc/letsencrypt {{ certbot_image_name }}:{{ certbot_image_version }} certonly --staging --standalone --non-interactive --agree-tos --email {{ my_email }} -d {{ site.subdomain }}.{{ domain }}"
when: not certs_directory.stat.exists
shell: "/usr/bin/docker run -i --rm --name certbot -p 443:443 -v /opt/dockerapps/{{ instance_name }}/letsencrypt:/etc/letsencrypt {{ certbot_image_name }}:{{ certbot_image_version }} certonly --standalone --non-interactive --agree-tos --email {{ my_email }} -d {{ site.subdomain }}.{{ domain }}"
when: not certs_directory.stat.exists

0 comments on commit 3fb0fdc

Please sign in to comment.