2019-05-09 16:07:53 +00:00
|
|
|
---
|
|
|
|
- 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:
|
2019-11-01 15:05:02 +00:00
|
|
|
- { protocol: 'tcp', port: '{{ beacon_node_listening_port }}' }
|
|
|
|
- { protocol: 'udp', port: '{{ beacon_node_discovery_port }}' }
|
2019-05-09 16:07:53 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: rule
|
|
|
|
notify:
|
|
|
|
- Save iptables rules
|