Always run this shell task since it registers a variable we need to use.
This commit is contained in:
parent
0d28ea5231
commit
8e8d3a98c1
1 changed files with 1 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue