added scaffolding and ufw setup
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: cjr
|
||||
description: Configure and enable ufw firewall
|
||||
license: BSD-3-Clause
|
||||
min_ansible_version: "2.1"
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: Install packages needed for ufw
|
||||
community.general.pacman:
|
||||
name:
|
||||
- ufw
|
||||
- ufw-extras
|
||||
state: present
|
||||
|
||||
- name: Configure the firewall incoming connection policy
|
||||
community.general.ufw:
|
||||
direction: incoming
|
||||
policy: deny
|
||||
|
||||
- name: Configure the firewall outgoing connection policy
|
||||
community.general.ufw:
|
||||
direction: outgoing
|
||||
policy: allow
|
||||
|
||||
- name: Allow incoming ports
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: "22"
|
||||
proto: tcp
|
||||
- name: Enable UFW
|
||||
community.general.ufw:
|
||||
state: enabled
|
||||
Reference in New Issue
Block a user