Hello every body !
In my company we are using Reprepro as a Debian repository manager.
This manager doest not allow multiple versions of a same package identified by its name.
So we have organized or build promotion workflow using multiple distributions : Demo / Staging / Production / Archives
As a result, we were using simple shell scripts for our deployment with the following syntax :
apt-get install <pakage_name>/<release_name>
That has the advantage to force a downgrade of the package and behave pretty much like this command for a selection.
apt-get install <package_name>=<version>
However, it seems that Ansible APT module does not support this format with the parameter “name”
`
msg: No package matching ‘PKG_NAME/demo’ is available
`
Whereas :
`
apt-get install PKG_NAME/demo
Reading package lists… Done
Building dependency tree
Reading state information… Done
Selected version ‘2.4.0-1.0.0+128.g8cd3d55’ (company-demo:6.0/demo [all]) for ‘PKG_NAME’
The following packages will be DOWNGRADED:
PKG_NAME
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 8 not upgraded.
Need to get 65.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
`
Have you any idea how I could do it ?
Is it a good idea to use distributions like this ?
Any point of view ?
Thanks a lot for your feed back