Adding new Galaxy role fails every time...

38 views
Skip to first unread message

Christopher Mancini

unread,
Sep 11, 2015, 1:44:58 PM9/11/15
to Ansible Project
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

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

GH Repo button on above page links to https://github.com//

Bill Nottingham

unread,
Sep 11, 2015, 1:58:58 PM9/11/15
to ansible...@googlegroups.com
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


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1decd42d-d3b6-4225-a562-67876e63c521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Bill Nottingham
Director of Product, Ansible
ansible.com

Christopher Mancini

unread,
Sep 13, 2015, 8:17:38 PM9/13/15
to Ansible Project
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?

Chris Houseknecht

unread,
Sep 14, 2015, 10:56:21 AM9/14/15
to Ansible Project
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

Chris Houseknecht

unread,
Sep 14, 2015, 10:56:21 AM9/14/15
to Ansible Project
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

Christopher Mancini

unread,
Sep 14, 2015, 11:15:58 AM9/14/15
to Ansible Project
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!
Reply all
Reply to author
Forward
0 new messages