diff --git a/tests/tasks/ssh/ssh-portal-command.yaml b/tests/tasks/ssh/ssh-portal-command.yaml index ee9899149a..72af209b1e 100644 --- a/tests/tasks/ssh/ssh-portal-command.yaml +++ b/tests/tasks/ssh/ssh-portal-command.yaml @@ -1,5 +1,5 @@ - name: "{{ testname }} - running {{ command }} on {{ username }}@{{ ssh_portal_host }} on port {{ ssh_portal_port }}, searching for '{{ expected_content }}'" - shell: ssh {{ username }}@{{ ssh_portal_host }} -p {{ ssh_portal_port }} {{ command }} + shell: ssh {{ username }}@{{ ssh_portal_host }} -p {{ ssh_portal_port }} -o 'PubkeyAcceptedKeyTypes +ssh-rsa' {{ command }} register: result until: result.stdout is search(expected_content) retries: 30