mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 14:30:45 +08:00
Always run this shell task since it registers a variable we need to use.
This commit is contained in:
@@ -150,6 +150,7 @@
|
||||
- name: check to see if sshd port is already known by selinux
|
||||
shell: semanage port -l | grep ssh
|
||||
register: sshd_selinux_port
|
||||
always_run: yes
|
||||
|
||||
- name: allow alternate sshd port
|
||||
command: semanage port -a -t ssh_port_t -p tcp {{ sshd_port }}
|
||||
|
||||
Reference in New Issue
Block a user