You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
380 B
YAML
16 lines
380 B
YAML
---
|
|
|
|
- name: Configure proxy for {{ protocol }} on {{ domain }}:{{ port }}
|
|
template:
|
|
src: mail_proxy.conf
|
|
dest: "{{ nginx_streams_directory }}/{{ domain }}:{{ port }}"
|
|
owner: "{{ nginx_system_user }}"
|
|
group: "{{ nginx_system_user }}"
|
|
mode: "u=rw,g=r,o=r"
|
|
|
|
- name: Allow {{ protocol }} in firewall
|
|
ufw:
|
|
rule: allow
|
|
port: "{{ port }}"
|
|
proto: tcp
|