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