diff --git a/tasks/main.yml b/tasks/main.yml index 894143c..bd8ff4f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -29,5 +29,13 @@ loop_control: loop_var: cert_item +- include_tasks: create-cert-nginx.yml + with_items: "{{ certbot_certs }}" + when: + - certbot_create_if_missing + - certbot_create_method == 'nginx' + loop_control: + loop_var: cert_item + - import_tasks: renew-cron.yml when: certbot_auto_renew