# To call Ansible legacy module from within library's custom module

**URL:** <https://forum.ansible.com/t/to-call-ansible-legacy-module-from-within-librarys-custom-module/29540>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [January 27, 2019, 1:18pm UTC](https://forum.ansible.com/t/to-call-ansible-legacy-module-from-within-librarys-custom-module/29540 "2019-01-27T13:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Y](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Leo\_Y](https://forum.ansible.com/u/Leo_Y)\
**Post date:** [January 27, 2019, 1:18pm UTC](https://forum.ansible.com/t/to-call-ansible-legacy-module-from-within-librarys-custom-module/29540/1 "2019-01-27T13:18:52Z")

</div>

I would like to use existing implementations while developing a custom module. For this matter, I want to use k8s\_raw module to communicate with Kubernetes cluster instead of importing python packages and managing the whole logic.  
How can I call an Ansible legacy module, for example a `k8s_raw` from python code of the custom library module?

Thank you,  
Leonid Y
