Fix acme when acme_port is not defined

pull/35/head
Emilien Mantel 2017-12-03 02:08:32 +01:00
parent a01f6cd5ea
commit 8dca6c8404
1 changed files with 1 additions and 1 deletions

View File

@ -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