나는 가능성있는 플레이 북에서 git clone 명령을 실행하려고합니다.가능 : git 모듈을 사용할 때 "Permission denied (publickey)"가 발생했습니다.
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
tasks:
- name: check out a git repository
git: repo={{ repo_url }} dest=/Dest/For/Cloning/ accept_hostkey=yes
vars:
repo_url: [email protected]:lorin/mezzanine-example.git
을 그리고, 내 CFG 파일은 다음과 같습니다 : 그것은 다음과 같습니다
[defaults]
transport = ssh
[ssh_connection]
ssh_args= -A
을하지만, 내가 명령을 실행 해요 때 ansible-playbook -i "localhost," -c local GitClone.yaml
을, 나는 Permission denied (publickey)
오류가 발생합니다.
내 로컬 [지정한 파일 경로]에 gh repo를 복제하고 싶습니다.
'ssh -T git @ github.com'의 결과는 무엇입니까? GitHub 계정이 있습니까? – techraf
'Permission denied (publickey) .' – Dawny33
설정해야합니다. http://stackoverflow.com/questions/2643502/git-permission-denied-publickey :) – Dawny33