[ansible-project] Understanding relationship between -K & become vs ansible_ssh_user & ansible_ssh_pass

2021-09-07 Thread Michelle Dupuis
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

[ansible-project] Understanding relationship between -K & become vs ansible_ssh_user & ansible_ssh_pass

2021-09-07 Thread Michelle Dupuis
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 successfully ssh to the remote host as root. I run the