Skip to content

Commit 5c09fea

Browse files
authored
Merge pull request #83 from richlamdev/simplify-ufw
move basic ufw rule to base role, omit ufw role
2 parents ef6068e + 6006084 commit 5c09fea

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

main.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,25 @@
99
- vars.yml
1010

1111
roles:
12-
- auto-update
12+
# - auto-update
1313
- base
14-
- aws
15-
- brave
16-
- chrome
17-
# - docker-cli-only
18-
- docker-desktop-dependency
19-
- gh_cli
20-
- hashicorp
21-
- keepassxc
22-
- kubectl
23-
- microsoft
24-
- opera
25-
- signal-desktop
26-
- sublime-text
27-
- trivy
28-
- ufw
14+
# - aws
15+
# - brave
16+
# - chrome
17+
# # - docker-cli-only
18+
# - docker-desktop-dependency
19+
# - gh_cli
20+
# - hashicorp
21+
# - keepassxc
22+
# - kubectl
23+
# - microsoft
24+
# - opera
25+
# - signal-desktop
26+
# - sublime-text
27+
# - trivy
2928
- role: vim
3029
become: false
3130
- role: env
3231
become: false
33-
- disable-local-dns
32+
# - disable-local-dns
3433
# - yubico

roles/base/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525

2626
- name: autostart tasks
2727
import_tasks: autostart.yml
28+
29+
- name: configure ufw
30+
import_tasks: ufw.yml

roles/base/tasks/ufw.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
- name: Limit inbound SSH traffic on port 22 for 192.168.0.0/16 network
3+
ansible.builtin.ufw:
4+
rule: limit
5+
port: 22
6+
proto: tcp
7+
from_ip: 192.168.0.0/16

0 commit comments

Comments
 (0)