Added role nginx/all_mail_proxy
parent
88afbf7106
commit
b380249c0c
@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
domain: "example.com"
|
||||
backend_server: "127.0.0.1"
|
||||
backend_smtp: "{{ backend_server }}:{{ backend_smtp_port }}"
|
||||
backend_imap: "{{ backend_server }}:{{ backend_imap_port }}"
|
||||
smtp_ports:
|
||||
- 25
|
||||
- 587
|
||||
imap_ports:
|
||||
- 993
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- role: nginx/mail_proxy
|
||||
domain: "{{ domain }}"
|
||||
port: "{{ item }}"
|
||||
protocol: smtp
|
||||
backend: "{{ backend_smtp }}"
|
||||
with_items: "{{ smtp_ports }}"
|
||||
- role: nginx/mail_proxy
|
||||
domain: "{{ domain }}"
|
||||
port: "{{ item }}"
|
||||
protocol: imap
|
||||
backend: "{{ backend_imap }}"
|
||||
with_items: "{{ imap_ports }}"
|
Loading…
Reference in New Issue