# Ansible Role issue with Github

**URL:** <https://forum.ansible.com/t/ansible-role-issue-with-github/2428>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [November 16, 2023, 7:26pm UTC](https://forum.ansible.com/t/ansible-role-issue-with-github/2428 "2023-11-16T19:26:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ITslacker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/itslacker/32/1577_2.png) [@ITslacker](https://forum.ansible.com/u/ITslacker)\
**Post date:** [November 16, 2023, 7:26pm UTC](https://forum.ansible.com/t/ansible-role-issue-with-github/2428/1 "2023-11-16T19:26:07Z")

</div>

I have recently been tasked to migrate our ansible playbooks and roles over to github from bitbucket as we want to consolidate our systems. I am currently running into a permissions issue when I am trying to call a role from a playbook.

playbook is in it’s own repo (let’s call it pb-repo) and role is in another repo (let’s call it ar-repo).

in bitbucket, it works perfectly fine as I have in the roles/requirements.yml file of the playbook that calls that bitbucket repo

```auto
- src: git+ssh//ansible@bitbucket.server.io/ar-repo/ar-repo.git

```

however, this doesn’t work in github. I have created credentials in awx, uploaded the ssh key into github and it does sync the playbook repo.

roles/requirements.yml for playbook in github

```auto
 - src: git+ssh//ansible@github.com/ar-repo/ar-repo.git

```

error message for reference:

```auto
"ansible@github.com: Permission denied (publickey). fatal: Could not read from",
    "remote repository. Please make sure you have the correct access rights and the",
    "repository exists.

```

I’ve tried recreating the credentials, I matched the credentials to the old credentials. Tried using the old credentials as well without any luck. any ideas?

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [December 6, 2023, 7:44pm UTC](https://forum.ansible.com/t/ansible-role-issue-with-github/2428/2 "2023-12-06T19:44:26Z")

</div>

> [@ITslacker](#):
>
> ` - src: git+ssh//ansible@github.com/ar-repo/ar-repo.git`

try

` - src: git+ssh://git@github.com:ar-repo/ar-repo.git`
