---

- name: Handle jitsi videobridge ports
  iptables_raw:
    name: jitsi_videobridge_ports
    state: "{{ (jitsi_videobridge_src_ip | length > 0) | ternary('present','absent') }}"
    rules: "-A INPUT -m state --state NEW -p udp --dport {{ jitsi_videobridge_rtp_port }} -s {{ jitsi_videobridge_src_ip | join(',') }} -j ACCEPT"
  tags: firewall,jitsi
