diff --git a/tasks/ssl/acme.yml b/tasks/ssl/acme.yml index 7efddfc..17def73 100644 --- a/tasks/ssl/acme.yml +++ b/tasks/ssl/acme.yml @@ -37,7 +37,7 @@ - name: SET_FACT | Assign var with certificates to create set_fact: - acme_create: "{{ acme_create | default([]) + [ (item.item | combine({'listen': ([item.item.acme_port]|default([])) }) ) ] }}" + acme_create: "{{ acme_create | default([]) + [ (item.item | combine({'listen': ([item.item.acme_port|default(80)]) }) ) ] }}" with_items: "{{ acme_installed_certs.results }}" when: item.skipped is not defined and not item.stat.exists