# Adding new Galaxy role fails every time...

**URL:** <https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [September 11, 2015, 5:15pm UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240 "2015-09-11T17:15:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Mancini](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@Christopher\_Mancini](https://forum.ansible.com/u/Christopher_Mancini)\
**Post date:** [September 11, 2015, 5:15pm UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240/1 "2015-09-11T17:15:33Z")

</div>

Hello, I attempted to add a role to Ansible Galaxy, but no matter what I try, it fails to import. I think its not saving the data properly. Here are the details.

Repository: [https://github.com/basho-labs/ansible-riak](https://github.com/basho-labs/ansible-riak)

Input to ‘Add a Role’ form:  
GH User: basho-labs  
GH Repo: ansible-riak  
alt name: riak-kv

resulting role: [https://galaxy.ansible.com/list#/roles/5077](https://galaxy.ansible.com/list#/roles/5077)

GH Repo button on above page links to [https://github.com//](https://github.com//)

---

<div class="post-metadata">

**Author:** ![Bill\_Nottingham](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@Bill\_Nottingham](https://forum.ansible.com/u/Bill_Nottingham)\
**Post date:** [September 11, 2015, 5:58pm UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240/2 "2015-09-11T17:58:44Z")

</div>

It’s a known issue with parsing the Unicode characters in the README.md file. We’re working to fix that in Galaxy, but if you swap out the apostrophes for the ASCII equivalent, it should work.

Bill

---

<div class="post-metadata">

**Author:** ![Christopher\_Mancini](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@Christopher\_Mancini](https://forum.ansible.com/u/Christopher_Mancini)\
**Post date:** [September 14, 2015, 12:17am UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240/3 "2015-09-14T00:17:38Z")

</div>

Thanks Bill. I removed the two non-ascii apostrophe’s I found, pushed the changes up and hit re-import, it has been running for like an hour and has only updated the keywords. It seems to be stuck. Should I delete and re-add?

---

<div class="post-metadata">

**Author:** ![Chris\_Houseknecht](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@Chris\_Houseknecht](https://forum.ansible.com/u/Chris_Houseknecht)\
**Post date:** [September 14, 2015, 2:20pm UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240/4 "2015-09-14T14:20:36Z")

</div>

Hey Chris-

Noticed also that `dependencies:` is defined incorrectly in your meta/main.yml. It needs to be an array.

Change line 107 to:

> dependencies:

And, I believe that should fix the import issue.

I’ve added code to the Galaxy import process to surface this error on the UI. The change will land in our next release. Apologies for the inconvenience. Let me know, if you still run into issues.

Chris Houseknecht  
chouse at [ansible.com](http://ansible.com)

---

<div class="post-metadata">

**Author:** ![Chris\_Houseknecht](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@Chris\_Houseknecht](https://forum.ansible.com/u/Chris_Houseknecht)\
**Post date:** [September 14, 2015, 2:55pm UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240/5 "2015-09-14T14:55:24Z")

</div>

Hey Chris-

Looks like there is an issue with `dependencies:` in meta/main.yml. It should be an array.

Change line 107 in meta/main.yml to:

> dependencies:

And that should do it.

I added code to surface this error to the Galaxy UI. The change will land in our next release. Apologies for any inconvenience. If it still doesn’t work, please feel free to reach out to me.

Chris Houseknecht  
chouse at [ansible.com](http://ansible.com)

---

<div class="post-metadata">

**Author:** ![Christopher\_Mancini](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@Christopher\_Mancini](https://forum.ansible.com/u/Christopher_Mancini)\
**Post date:** [September 14, 2015, 3:15pm UTC](https://forum.ansible.com/t/adding-new-galaxy-role-fails-every-time/19240/6 "2015-09-14T15:15:58Z")

</div>

Thanks for catching that Chris! It used to have a dependency but I removed that and didn’t realize I needed to initialize an empty object.

After I made the change and synced it out, I clicked re-import but it wouldn’t do anything so I deleted it and re-added the role and it is working beautifully now, thank you!
