SSH Agent Forwarding with Ansible
The problem is resolved by removing this line from the playbook: sudo: yes When sudo is run on the remote host, the environment variables set by ssh during login are no longer available. In particular, SSH_AUTH_SOCK, which “identifies the path of a UNIX-domain socket used to communicate with the agent” is no longer visible so … Read more