Fix SSH port logic again
This commit is contained in:
parent
581c832b36
commit
d0904a96a8
|
@ -3,6 +3,7 @@
|
|||
wait_for:
|
||||
port: 19022
|
||||
host: "{{ ansible_host }}"
|
||||
search_regex: "OpenSSH"
|
||||
connect_timeout: 5
|
||||
timeout: 10
|
||||
become: false
|
||||
|
@ -20,7 +21,7 @@
|
|||
ssh_configured.state != "started")) and
|
||||
ansible_port != 2222
|
||||
|
||||
- name: Change SSH port
|
||||
- name: Change SSH port on host
|
||||
lineinfile:
|
||||
dest: "/etc/ssh/sshd_config"
|
||||
regexp: "^#?Port"
|
||||
|
|
Loading…
Reference in a new issue