ansible galaxy project naming
See original GitHub issueBug Report
SUMMARY
With the current changes from #779 and #820 I’ll have now a follow up problem: we used to maintain our github stuff with:
- github repository name: ansible-role-mycooltool
- galaxy name: name-space.mycooltool
After changing and applying #820 we now have the
- galaxy name: name_space.ansible_role_mycooltool and have no possibility to change that?
STEPS TO REPRODUCE
- create namespace
- create github role ansible-role-my-cool-tool
- import that in ansible galaxy
- wonder about name_space.ansible_role_my_cool_tool
EXPECTED RESULTS
First: I don’t get which namespace is to use now. name_space or name-space for the existing project.
ansible-galaxy install while-true-do.my-cool-tool
or
ansible-galaxy install while_true_do.my_cool_tool
ACTUAL RESULTS
ansible-galaxy install while_true_do.ansible_role_my_cool_tool
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Creating Roles — Ansible Documentation
Topics. Creating Roles. Roles; Role Metadata; Role Names. This topic describes how to create Ansible roles that can be imported into Galaxy.
Read more >An Ansible role for managing a Galaxy server - GitHub
Galaxy. An Ansible role for installing and managing Galaxy servers. Despite the name confusion, Galaxy bears no relation to Ansible Galaxy.
Read more >Galaxy Installation with Ansible
Here we'll see how to install a Galaxy server using an Ansible playbook. ... For our project, Ansible is even more fitting due...
Read more >ics-ansible-galaxy / ics-ans-naming · GitLab
ics-ans-naming · 64 Commits · 2 Branches · 0 Tags · 2.5 MB Project Storage.
Read more >Ansible III: Ansible Galaxy — Big Data Classes - Cloudmesh
It is a “helloworld” project only meant to get us familiar with Ansible Galaxy project ... cd roles $ ansible-galaxy init <to-be-created-role-name>.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Your namespace is
donvipre
, which exists, but has no content associated with it.If you start adding repositories to your namespace, you’ll see, as the documentation states, repository and role names will get ‘-’ converted to ‘_’. Using your example,
ansible-role-my-cool-tool
will get converted toansible_role_my_cool_tool
.If you want to alter the name, to just
my_coole_tool
, you can set thegalaxy_ino.role_name
value inmeta/main.yml
.@donvipre @daniel-wtd
Renamed
while-true-do
towhile_true_do
, as requested. Apologies for not getting back to this.Tested an install of one of your roles, see output below. You’ll need to update your role dependencies with the new namespace.