ansible / ansible.builtin / v2.4.4.0-1 / module / seport Manages SELinux network port type definitions | "added in version" 2.0 of ansible.builtin" Authors: Dan Keder preview | supported by communityansible.builtin.seport (v2.4.4.0-1) — module
pip
Install with pip install ansible==2.4.4.0.post1
Manages SELinux network port type definitions.
# Allow Apache to listen on tcp port 8888 - seport: ports: 8888 proto: tcp setype: http_port_t state: present
# Allow sshd to listen on tcp port 8991 - seport: ports: 8991 proto: tcp setype: ssh_port_t state: present
# Allow memcached to listen on tcp ports 10000-10100 and 10112 - seport: ports: 10000-10100,10112 proto: tcp setype: memcache_port_t state: present
ports: default: null description: - Ports or port ranges, separated by a comma required: true proto: choices: - tcp - udp default: null description: - Protocol for the specified port. required: true state: choices: - present - absent default: present description: - Desired boolean value. required: true reload: default: true description: - Reload SELinux policy after commit. required: false setype: default: null description: - SELinux type for the specified port. required: true