Creating an uncomplicated firewall with ansible scripts
- Edit
inventory
file to represent your target server. - Make sure to edit the users in
group_vars/all
(these users will have ssh access to the target server)
To run:
ansible-playbook playbook.yml -i inventory
Editing
- Playbook for testing is
playbook.yml
- Global variables:
group_vars/all
- Role tasks:
roles/ufw/tasks/main.yml
- Role handlers:
roles/ufw/handlers/main.yml
- Role variables:
roles/ufw/defaults/main.yml