Hi, Using a "galaxy.yml" file as describe by Michael is pretty useful. (check an example there: https://github.com/guillaumededrie/ansible-private-cloud).
PS > Can I specify versions in meta/main.yml in such format: > username1.rolename2,1.2.3? > I don't see any of this https://github.com/ansible/ansible/blob/devel/bin/ansible-galaxy#L707. I'm adding a thought: - How to handle role which are not on the Galaxy repository ? (gitmodule ? Galaxy command improvements to add direct link to meta/main.yml from a repository ? ...) Regards, -- Guillaume Le dimanche 25 mai 2014 14:08:31 UTC+2, Andrew Pashkin a écrit : > > How pull requests for Ansible are happen? Do I need to create an issue on > GitHub at first? > > Thoughts on topic: > > from the user perspective: > > - I want to have option to automatically install all needed dependencies > to run my playbook (Berkshelf can do that, but it, as well as Chef - pretty > unpythonic tool) > > from roles developer perspective: > > - I want to specify dependencies in a way that user who will use it will > be able to fetch them and run my role in same environent as I intend. > > issues that that features lead to: > > - How to solve version clashes between roles? > > PS > Can I specify versions in meta/main.yml in such format: > username1.rolename2,1.2.3? > > > > On 22.05.2014 02:13, Michael DeHaan wrote: > > "Is there some reason behind that Ansible does not take in attention > versions like Pip for example?" > > Ansible-galaxy (you mean ansible-galaxy, not ansible) here, as a command > line tool does take requirements files. > > You can easily have one like > > username1.rolename2,1.2.3 > username3.rolename4,4.5.6 > > and use it just like a pip requirements file > > We've also said we're happy to entertain pull requests to add more > features to the galaxy CLI, if you find something else in need of upgrades. > > > > > On Wed, May 21, 2014 at 8:13 AM, Andrew Pashkin > <[email protected]<javascript:> > > wrote: > >> On 21.05.2014 15:57, James Cammarata wrote: >> >>> >>> You control which roles are installed on your system, so that is really >>> a matter of personal preference. >>> >>> Yes, but I can't control what user of my role will have installed. And >> user do not want to dig through all downloaded roles guessing which exactly >> version from which author he need to be sure that nothing will break. >> Is there some reason behind that Ansible does not take in attention >> versions like Pip for example? With Pip I can just set exact versions of >> dependencies that I need to run my project, and don't worry about anything, >> but this option is absent in Ansible, where there is a similar use case. >> >> >> -- >> With kind regards, Andrew Pashkin. >> cell phone - +7 (985) 898 57 59 >> Skype - waves_in_fluids >> e-mail - [email protected] <javascript:> >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/537C9861.3030505%40gmx.co.uk. >> >> >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxYfTZH653Buew6VfUmQogF1%2B1ibUEN7Nq%2BE-6xMCE6wA%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxYfTZH653Buew6VfUmQogF1%2B1ibUEN7Nq%2BE-6xMCE6wA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- > With kind regards, Andrew Pashkin. > cell phone - +7 (985) 898 57 59 > Skype - waves_in_fluids > e-mail - [email protected] <javascript:> > > -- 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/b488b156-60a0-46c9-9397-f11fc1aaac01%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
