mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2022-08-29 11:00
This commit is contained in:
9
roles/linstor_controller/tasks/iptables.yml
Normal file
9
roles/linstor_controller/tasks/iptables.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- name: Handle API ports
|
||||
iptables_raw:
|
||||
name: linctl_api_port
|
||||
state: "{{ (linctl_api_src_ip | length > 0) | ternary('present','absent') }}"
|
||||
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ linctl_api_port }} -s {{ linctl_api_src_ip | join(',') }} -j ACCEPT"
|
||||
tags: firewall,drbd
|
||||
|
Reference in New Issue
Block a user