Hi, Trying since hours, can't make it work (although it worked already somewhen)..
OK. Having a public ssh key, say ~/.ssh/id_rsa.pub. Configured it to Bitbucket. Able to checkout my project using public key authentication from bitbucket on my local machine. Was going to try that on an ansible node using ssh-agent forwarding. Running `ssh-add ~/.ssh/id_rsa` once. `ssh-add -l` shows 4096 SHA256:SpKY4tbbE7pkV5Ex3plKgu6X4nq6jtnM+Lss5Xk605A me@anywhere(RSA) As said, the same key is configured to bitbucket. My ./ansible.cfg: [ssh_connection] ssh_args=-o ForwardAgent=yes The playbook: --- - hosts: all tasks: - name: Clone git: repo: g...@bitbucket.org:blabla.git dest: documentation Running it with: ansible-playbook -l servers -i hosts.cfg test.yml -v Always ends up like so: TASK [Clone] ********************************************************************************************************************************************************************************** fatal: [ubuntuVM]: FAILED! => {"changed": false, "cmd": "/usr/bin/git ls-remote '' -h refs/heads/HEAD", "msg": "Host key verification failed.\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.", "rc": 128, "stderr": "Host key verification failed.\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", "stderr_lines": ["Host key verification failed.", "fatal: Could not read from remote repository.", "", "Please make sure you have the correct access rights", "and the repository exists."], "stdout": "", "stdout_lines": []} I understand the error, but I don't understand the problem :) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9f6b7441-ab31-49a8-bf9e-b87f5ad930d8n%40googlegroups.com.