diff --git a/roles/setup/templates/receptor.conf.j2 b/roles/setup/templates/receptor.conf.j2 index 6a0a861..8b25262 100644 --- a/roles/setup/templates/receptor.conf.j2 +++ b/roles/setup/templates/receptor.conf.j2 @@ -54,7 +54,11 @@ {% if receptor_peers | default([]) %} {% for peer in receptor_peers %} - {{ peer['protocol'] }}-peer: + {% if 'port' in peer -%} address: {{ peer['address'] | default(peer['host']) }}:{{ peer['port'] }} + {% else %} + address: {{ peer['address'] }} + {%- endif %} redial: true {% if receptor_tls %} tls: tls_client