ansible-role-mastodon/tasks/bare/ufw.yml

23 lines
357 B
YAML
Raw Permalink Normal View History

2022-11-19 10:10:57 +01:00
---
- name: Allow ssh through firewall
ufw:
proto: tcp
port: "22"
rule: allow
- name: Set ufw policy
ufw:
state: enabled
direction: incoming
policy: deny
- name: Allow nginx firewall
ufw:
proto: tcp
port: "80"
rule: allow
- name: Allow nginx ssl firewall
ufw:
proto: tcp
port: "443"
rule: allow