Hi Michael The requirements.txt could be a way to go, might require some restructuring but thanks for the suggestion. And if I have some time over I might have a go at implementing the function :)
Regards Gustav Den tisdagen den 10:e december 2013 kl. 18:37:47 UTC+1 skrev Michael DeHaan: > > You could use the pip module with a requirements.txt. > > I do agree version should be specified in the version parameter. > > I do welcome attempts to upgrade the module, should you wish to try! > > > > On Tue, Dec 10, 2013 at 5:23 AM, Gustav Andersson > <[email protected]<javascript:> > > wrote: > >> Is this currently possible with Ansibles pip module? I have been googling >> and trying different ways all morning but come up empty handed. >> >> Say I want to install the latest 1.2 version of a specific package with >> pip, but not 1.3.x versions due to compatibility issues. Manually I could >> run: >> >> >>> pip package>=1.2,<1.3 >> >> >> And this would do the trick. But using the version parameter in Ansibles >> pip module seems to expect a specific version only. I can't specify the >> version parameter to be >=1.2,<1.3, this gives an error. >> Then I tried bypassing the version parameter by specifying >> name="package>=1.2,<1.3" but Ansible caught me and gave me a *msg: >> version must be specified in the version parameter *error. >> >> I could obviously set the version to the latest 1.2.x version and update >> if bug fixes are made. But it would be very neat if it could be done >> automatically. >> >> Thankful for all suggestions >> >> /Gustav >> >> -- >> 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:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Michael DeHaan <[email protected] <javascript:>> > CTO, AnsibleWorks, Inc. > http://www.ansibleworks.com/ > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
