# apt Module does not support "/target\_release" option ?

**URL:** <https://forum.ansible.com/t/apt-module-does-not-support-target-release-option/17605>\
**Category:** Ansible Project\
**Created:** [February 23, 2015, 10:06pm UTC](https://forum.ansible.com/t/apt-module-does-not-support-target-release-option/17605 "2015-02-23T22:06:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xavier\_Krantz](https://avatars.discourse-cdn.com/v4/letter/x/7bcc69/32.png) [@Xavier\_Krantz](https://forum.ansible.com/u/Xavier_Krantz)\
**Post date:** [February 23, 2015, 10:06pm UTC](https://forum.ansible.com/t/apt-module-does-not-support-target-release-option/17605/1 "2015-02-23T22:06:29Z")

</div>

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 🙂
