--- dependencies: - role: nginx/mail_proxy port: "{{ item }}" protocol: smtp backend: "{{ backend_smtp }}" with_items: "{{ smtp_ports }}" - role: nginx/mail_proxy port: "{{ item }}" protocol: imap backend: "{{ backend_imap }}" with_items: "{{ imap_ports }}"