# How to Import ansible role on galaxy.ansible.com

**URL:** <https://forum.ansible.com/t/how-to-import-ansible-role-on-galaxy-ansible-com/1248>\
**Category:** Get Help\
**Tags:** role, namespace, galaxy-ng\
**Created:** [October 2, 2023, 11:25am UTC](https://forum.ansible.com/t/how-to-import-ansible-role-on-galaxy-ansible-com/1248 "2023-10-02T11:25:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ryhennessy](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ryhennessy/32/978_2.png) [@ryhennessy](https://forum.ansible.com/u/ryhennessy)\
**Post date:** [October 3, 2023, 6:10pm UTC](https://forum.ansible.com/t/how-to-import-ansible-role-on-galaxy-ansible-com/1248/9 "2023-10-03T18:10:09Z")

</div>

+1 here on this issue. I am also getting the 403 Forbidden error message.

Getting the error that the token is malformed in the config file but I also get the same 403 when I specify the token as a command line option.

ansible-galaxy [core 2.13.3]  
config file = /etc/ansible/ansible.cfg  
python version = 3.9.18 (main, Aug 24 2023, 18:16:58) [Clang 15.0.0 (clang-1500.0.40.1)]  
jinja version = 3.1.2  
libyaml = True  
Using /etc/ansible/ansible.cfg as config file  
Opened /Users/ryanhennessy/.ansible/galaxy\_token  
Galaxy token file /Users/ryanhennessy/.ansible/galaxy\_token malformed, unable to read it  
ERROR! None (HTTP Code: 403, Message: Forbidden)

---

_[View the full topic](https://forum.ansible.com/t/how-to-import-ansible-role-on-galaxy-ansible-com/1248)._
