# how to prevent apt module from desinstall something when installing a package ?

**URL:** <https://forum.ansible.com/t/how-to-prevent-apt-module-from-desinstall-something-when-installing-a-package/34978>\
**Category:** Ansible Project\
**Created:** [April 14, 2021, 10:43am UTC](https://forum.ansible.com/t/how-to-prevent-apt-module-from-desinstall-something-when-installing-a-package/34978 "2021-04-14T10:43:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Caillibaud](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Daniel\_Caillibaud](https://forum.ansible.com/u/Daniel_Caillibaud)\
**Post date:** [April 14, 2021, 10:43am UTC](https://forum.ansible.com/t/how-to-prevent-apt-module-from-desinstall-something-when-installing-a-package/34978/1 "2021-04-14T10:43:50Z")

</div>

Hi,

When a package install is conflicting with other, apt module desinstall all packages in conflict  
to install the asked one, without notifying anything (except change).

I didn't see any option to prevent this on  
[https://docs.ansible.com/ansible/2.9/modules/apt\_module.html](https://docs.ansible.com/ansible/2.9/modules/apt_module.html)

Is there a dpkg\_options to make the install task to fail if an installed package is in conflict  
with the one(s) to install ?

Thanks
