infra-role-geth/tasks/firewall.yml

15 lines
314 B
YAML

---
- name: Geth | Enable ports on firewall
iptables:
comment: '{{ geth_cont_name }} {{ item }}'
jump: 'ACCEPT'
chain: 'SERVICES'
source: '0.0.0.0/0'
protocol: '{{ item }}'
destination_port: '{{ geth_port | string }}'
with_items:
- tcp
- udp
notify:
- Save iptables rules