
Task path: /tmp/awx_14021_ypwngn_h/project/test.yml:91 I can see that every SSH connection method is tested, and it ends in error: with additional characters, no LF at the end of the private key file, etc.), the task that is supposed to trigger the user works and ends in error.

ESTABLISH SSH CONNECTION FOR USER: ssh_user_A Task path: /tmp/awx_14019_pqypcw0i/project/test.yml:2 with valid public/private keys, the task that is supposed to trigger the user change seems frozen at the first SSH connection attempt, nothing more happens, and nothing in the target remote host SSH logs (in these logs, I have the connection for the ssh_user_A, but absolutely nothing for the ssh_user_B one)ĪWX output: PLAYBOOK: test.yml *************************************************************.

I change the SSH user in the playbook with these instructions: - name: Switch to ssh_user_B userĪnsible_ssh_pass: ""Īnd the user change is triggered by a simple wait_for_connection: - name: Just here to validate the user changeīut unfortunately, the only thing that I get is a behavior that I do not understand:

if I test this public/private key with a temp machine credentials (not possible in final target) and a dummy playbook or an ad-hoc module call, it works I can do whatever I need.the public key is present on the remote host in the ~ssh_user_B/.ssh/authorized_keys file.a public/private keys couple for ssh_user_B:.machine credentials for ssh_user_A that are OK, I can do whatever I need.In this playbook, i need to perform a couple of tasks with another SSH user, ie. I have a playbook that is launched from AWX with machine credentials, ie.
