mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-08-25 01:05:36 +02:00
Fixes #12: Document how to generate certs automatically using certbot --standalone.
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user