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
394 B
YAML

---
- name: Configure proxy for {{ protocol }} on {{ domain }}:{{ port }}
template:
src: mail_proxy.conf
dest: "{{ nginx_streams_directory }}/{{ domain }}:{{ port }}"
owner: "{{ global_nginx_system_user }}"
group: "{{ global_nginx_system_user }}"
mode: "u=rw,g=r,o=r"
- name: Allow {{ protocol }} in firewall
ufw:
rule: allow
port: "{{ port }}"
proto: tcp