feat: move to dedicated repo
This commit is contained in:
commit
4a88a5b28d
54 changed files with 1524 additions and 0 deletions
12
tasks/firewall/firewall-rules.yaml
Normal file
12
tasks/firewall/firewall-rules.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
# create firewall rule
|
||||
- name: "firewall - allow {{ __rule['to_port'] }} from {{ __rule['from_ip'] }}"
|
||||
community.general.ufw:
|
||||
rule: "allow"
|
||||
direction: "in"
|
||||
proto: "{{ __rule['proto'] | default('tcp') }}"
|
||||
from_ip: "{{ __rule['from_ip'] }}"
|
||||
to_port: "{{ __rule['to_port'] }}"
|
||||
tags:
|
||||
- "firewall"
|
||||
Loading…
Add table
Add a link
Reference in a new issue