I would love to have this functionality added to ansible-galaxy. I'm 
currently using librarian-ansible 
<https://github.com/bcoe/librarian-ansible>because it allows me to specify 
my own git repos for sourcing roles. I don't care for how heavy-handed 
librarian-ansible is, though: each time I run any librarian-ansible command 
it wipes out all changes in the librarian_roles directory, causing all my 
customizations to be lost. I much prefer the behavior of ansible-galaxy but 
can't use it because I host my roles on a private git repository.

One thing I do like very much about librarian-ansible is the 
syntax/capability of the Ansiblefile:

# This will pull a role using the Ansible Galaxy API
role "kunik.deploy-upstart-scripts"

# This allows me to specify my own git repository as a source as well as a 
version number
role "disa-stig-rhel6", git: 
"[email protected]:ansible/role-disa-stig-rhel6.git", "1.0"

# I can also point to github repos
role "role "pgolm.ansible-playbook-monit", github: "pgolm/ansible-playbook-
monit"


There are philosophical differences in how the two tools operate as well. 
With librarian-ansible, you are not meant to ever customize roles under the 
control of librarian-ansible. This makes keeping the roles up to date 
rather easy but customizing them is not recommended since any changes will 
be lost (unless you copy the role out of the librarian_roles folder, 
essentially forking the role).

ansible-galaxy, on the other hand, lends itself more to using shared roles 
as a starting point and not as an ongoing source of truth. I could be using 
ansible-galaxy wrong, but that's how I see it (or maybe it's flexible 
enough to be used either way). I run ansible-galaxy once to get the role, 
then customize it to my liking. Running ansible-galaxy again does not 
overwrite any customizations I have made to the role, which is much 
friendlier and more in line with how I like to use the tool.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cc0614f4-4d5a-4f74-97d3-42de785bc445%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to