|
---
|
|
# 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 |