track selinux change to alt ssh port

This commit is contained in:
kevinnlsamuel committed 2026-10-23 23:01:21 +05:30
1 parent 322a14a882
commit 36cbf9861f
1 file changed
+4 -1
+4 -1
View File
@@ -20,4 +20,7 @@
state: present
name: policycoreutils-python-utils
- name: give sshd access to alt port on selinux
command: "/usr/sbin/semanage port -a -t ssh_port_t -p tcp {{ alt_ssh_port }}"
register: result_change_to_alt_port
ignore_errors: true
changed_when: "'already defined' not in result_change_to_alt_port.stdout"
command: semanage port -a -t ssh_port_t -p tcp {{ alt_ssh_port }}