Update to 2022-08-31 13:00

This commit is contained in:
Daniel Berteaud
2022-08-31 13:00:17 +02:00
parent 416ed9c867
commit c10fd506f3
18 changed files with 491 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
---
- name: Handle vault ports in the firewall
iptables_raw:
name: vault_port_{{ item }}
state: "{{ (vault_services[item].src_ip | length > 0) | ternary('present', 'absent') }}"
rules: |
-A INPUT -m state --state NEW -p tcp --dport {{ vault_services[item].port }} -j ACCEPT
loop: "{{ vault_services.keys() | list }}"
tags: firewall,vault