---
- name: Allow access to Plex Media Server from LAN
  lineinfile:
    path: /etc/pf.conf
    regexp: ".*32469 }$"
    line: "{{ 'pass in proto tcp from {' +  item + '} to any port { 32400, 3005, 8324, 32469 }' }}"

- name: Allow access to Plex Media Server from LAN
  lineinfile:
    path: /etc/pf.conf
    regexp: ".*1900 }$"
    line: "{{ 'pass in proto udp from {' +  item + '} to any port { 5353, 32410:32414, 1900 }' }}"
