# using Module apt: only\_upgrade is wrong

**URL:** <https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070>\
**Category:** Ansible Project\
**Created:** [July 21, 2016, 1:30am UTC](https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070 "2016-07-21T01:30:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard934935](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@richard934935](https://forum.ansible.com/u/richard934935)\
**Post date:** [July 21, 2016, 1:30am UTC](https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070/1 "2016-07-21T01:30:34Z")

</div>

Hello,

Having either apt: only\_upgrade=docker-engine in my playbook or running it on the command line as ansible all --sudo -m apt -a ‘only\_upgrade=docker-engine’ fails with

```auto
xx.xxx.xx.xxx | FAILED! => {
"changed": false,
"failed": true,
"msg": "Boolean docker-engine not in either boolean list"
}

```

In the document

only\_upgrade(added in 2.1)  
Only install/upgrade a package if it is already installed.

my local ansible version is

```auto
ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/usr/share/ansible']

```

and my host docker-engine version is 1.11.0,

Using only\_upgrade way is wrong?

Thanks!
