# dpkg\_divert module

**URL:** <https://forum.ansible.com/t/dpkg-divert-module/29968>\
**Category:** Ansible Developer\
**Created:** [March 24, 2019, 6:39pm UTC](https://forum.ansible.com/t/dpkg-divert-module/29968 "2019-03-24T18:39:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus\_Ethgen](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@Klaus\_Ethgen](https://forum.ansible.com/u/Klaus_Ethgen)\
**Post date:** [March 24, 2019, 6:39pm UTC](https://forum.ansible.com/t/dpkg-divert-module/29968/1 "2019-03-24T18:39:31Z")

</div>

Hi folks,

as debian needs more and more diversions from there idea of where files  
should be, I created a dpkg\_divert module to address that from ansible.

I'd like to give that to other ansible folks but I am not sure how to do  
it.

The implementation is very robust and works with at least unstable,  
stable and oldstable and maybe also oldoldstable. It can divert even  
symlinks what is somewhat troublesome.

The crucial point is, that I implemented it in perl as I do not know  
(and like) python to much.

How do you think it could go into ansible?

Here is the script from my playbook:
