Update to 2023-03-17 16:00

This commit is contained in:
Daniel Berteaud
2023-03-17 16:00:08 +01:00
parent d96d45834b
commit b4b621e760
20 changed files with 362 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
---
- name: Handle offen port in the firewall
iptables_raw:
name: offen_port
state: "{{ (offen_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ offen_port }} -s {{ offen_src_ip | join(',') }} -j ACCEPT"
tags: firewall,offen