ansible-infra/roles/common/tasks/ufw.yml

15 lines
302 B
YAML
Raw Normal View History

2020-04-13 14:46:45 +02:00
---
# Install and configure UFW, the uncomplicated firewall
- name: Install UFW, the uncomplicated firewall
apt:
name: ufw
state: present
- name: Allow OpenSSH port {{ openssh_port }}
ufw:
rule: allow
port: "{{ openssh_port }}"
- name: Enable UFW config
ufw:
state: enabled