diff --git a/ansible/tasks/ssh_juggle_port.yml b/ansible/tasks/ssh_juggle_port.yml index 7e8d2c3a..7d521fac 100644 --- a/ansible/tasks/ssh_juggle_port.yml +++ b/ansible/tasks/ssh_juggle_port.yml @@ -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: