Skip to content

Commit

Permalink
Adjust ssh port juggle behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Sep 1, 2021
1 parent d14297e commit 54439c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ansible/tasks/ssh_juggle_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@
# tasks:
# - import_tasks: _sshd_port_juggling.yml

- name: SSH Port Juggle | Set the ansible_port to the {{ security_ssh_port }}
set_fact:
ansible_port: "{{ security_ssh_port }}"

- name: SSH Port Juggle | Try connecting via SSH
wait_for_connection:
timeout: 5
ignore_errors: true
register: _ssh_port_result

- name: SSH Port Juggle | Set the ansible_port to the fallback default port and the user to root
- name: SSH Port Juggle | Set the ansible_port to the fallback default port
set_fact:
ansible_port: "22"
when:
Expand Down

0 comments on commit 54439c2

Please sign in to comment.