vm-ansible/roles/common/tasks/ufw.yaml
Kristóf Torma 52f7e7e153
Some checks failed
continuous-integration/drone/push Build is failing
remove fqdn
2023-08-30 23:13:59 +02:00

24 lines
389 B
YAML

---
- name: "Install ufw via apt"
apt:
update_cache: yes
state: present
name:
- ufw
- name: Reset ufw rules to default
community.general.ufw:
state: reset
- name: Enable ufw
community.general.ufw:
state: enabled
- name: Allow ssh via ufw
community.general.ufw:
rule: allow
port: ssh
src: "{{ item }}"
with_items: "{{ allowedranges }}"
...