mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 08:36:55 +02:00
Update to 2022-08-31 13:00
This commit is contained in:
10
roles/vault/tasks/iptables.yml
Normal file
10
roles/vault/tasks/iptables.yml
Normal 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
|
Reference in New Issue
Block a user