# How to write remote cli module (no client-side python) right way?

**URL:** <https://forum.ansible.com/t/how-to-write-remote-cli-module-no-client-side-python-right-way/31646>\
**Category:** Ansible Developer\
**Created:** [November 12, 2019, 8:31pm UTC](https://forum.ansible.com/t/how-to-write-remote-cli-module-no-client-side-python-right-way/31646 "2019-11-12T20:31:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Sviridov](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Alex\_Sviridov](https://forum.ansible.com/u/Alex_Sviridov)\
**Post date:** [November 12, 2019, 8:31pm UTC](https://forum.ansible.com/t/how-to-write-remote-cli-module-no-client-side-python-right-way/31646/1 "2019-11-12T20:31:26Z")

</div>

I cannot to find out how to write a module to controle remote device via SSH. Please can you help me with the example?  
I have several roles using the “raw” module but I’d like to write my own module to have the complex logic hidden inside it.  
I’ve looked through some storage modules - all of them use external optional python libraries. I’ve looked through network modules - they are very complex for me.  
Please need help.
