I am creating a simple playbook to add the current user’s public key onto the remote host. My playbook fails with error “Failed to connect to the host via ssh: Permission denied”.
I am running the playbook as non-root, and I can succesfully ssh to the remote host as root. I run the following script with -K and enter the become password when prompted.