- name: set_fact nginx_proxy_ports
set_fact:
nginx_proxy_ports: { 2775, 2776, 5235, 8443, 4443, 4444, 4447, 5443, 6443, 7443, 9443, 9090, 6250, 6251, 6252, 6253 }
- name: Set selinux ports for nginx
seport:
ports: "{{ item }}"
proto: tcp
setype: http_port_t
state: present
reload: yes
with_items: "{{ nginx_proxy_ports }}"