Hello.
I have problem. ssh-key passphrase permission denied (using ansible)
ansible playbook :
- hosts: testnew
gather_facts: no
become: yes
tasks:
- name: Git update
git:
key_file: /root/.ssh/new_rsa
repo: git@bitbucket.org:Ads/ads.git
dest: /path/
accept_hostkey: yes
remote: origin
update: yes
version: feature/out
ignore_errors: yes
"msg": "Failed to download remote objects and refs: git@bitbucket.org: Permission denied (publickey).fatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"
I use ssh-agent
ssh-add asa_key
enter passphrase