Skip to content

Instantly share code, notes, and snippets.

View MagedSaeed's full-sized avatar
🎯
Focusing

Maged Saeed MagedSaeed

🎯
Focusing
View GitHub Profile
@MagedSaeed
MagedSaeed / setup_firewall.yml
Created July 7, 2022 14:19 — forked from andreacarriero/setup_firewall.yml
[Ansible Playbook] Setup UFW to allow only incoming ssh connections
---
- hosts: all
become: true
tasks:
- name: ensure ufw installed
apt: name=ufw update_cache=true
- name: ufw deny incoming
ufw:
direction: incoming