Fixes #12: Document how to generate certs automatically using certbot --standalone.

This commit is contained in:
Jeff Geerling
2017-12-11 22:17:25 -06:00
parent 5f7c9e046c
commit d3f98e4258
5 changed files with 65 additions and 24 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
name: "{{ item }}"
state: stopped
when: not letsencrypt_cert.stat.exists
with_items: "{{ certbot_create_stop_services }}"
with_items: "{{ certbot_create_standalone_stop_services }}"
- name: Generate new certificate if one doesn't exist.
shell: "{{ certbot_create_command }}"
@@ -20,4 +20,4 @@
name: "{{ item }}"
state: started
when: not letsencrypt_cert.stat.exists
with_items: "{{ certbot_create_stop_services }}"
with_items: "{{ certbot_create_standalone_stop_services }}"
+8 -6
View File
@@ -1,17 +1,19 @@
---
- include: include-vars.yml
- import_tasks: include-vars.yml
- include: install-with-package.yml
- import_tasks: install-with-package.yml
when: not certbot_install_from_source
- include: install-from-source.yml
- import_tasks: install-from-source.yml
when: certbot_install_from_source
- include: create-cert-standalone.yml
- include_tasks: create-cert-standalone.yml
with_items: "{{ certbot_certs }}"
when: certbot_create_if_missing
when:
- certbot_create_if_missing
- certbot_create_method == 'standalone'
loop_control:
loop_var: cert_item
- include: renew-cron.yml
- import_tasks: renew-cron.yml
when: certbot_auto_renew