18 lines
515 B
YAML
18 lines
515 B
YAML
---
|
|
- name: 'Enable ports for: {{ beacon_node_cont_name }}'
|
|
iptables:
|
|
comment: '{{ beacon_node_cont_name }} {{ rule.protocol }}'
|
|
action: insert
|
|
chain: DOCKER-USER
|
|
jump: ACCEPT
|
|
source: '0.0.0.0/0'
|
|
protocol: '{{ rule.protocol }}'
|
|
destination_port: '{{ rule.port }}'
|
|
with_items:
|
|
- { protocol: 'tcp', port: '{{ beacon_node_listening_port }}' }
|
|
- { protocol: 'udp', port: '{{ beacon_node_discovery_port }}' }
|
|
loop_control:
|
|
loop_var: rule
|
|
notify:
|
|
- Save iptables rules
|