# Custom module with connection via TCP API. No files transfered.

**URL:** <https://forum.ansible.com/t/custom-module-with-connection-via-tcp-api-no-files-transfered/20332>\
**Category:** Ansible Developer\
**Created:** [January 24, 2016, 5:29pm UTC](https://forum.ansible.com/t/custom-module-with-connection-via-tcp-api-no-files-transfered/20332 "2016-01-24T17:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukasz\_Kostka](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@Lukasz\_Kostka](https://forum.ansible.com/u/Lukasz_Kostka)\
**Post date:** [January 24, 2016, 5:29pm UTC](https://forum.ansible.com/t/custom-module-with-connection-via-tcp-api-no-files-transfered/20332/1 "2016-01-24T17:29:39Z")

</div>

Hi

I’d like to develop custom module that will configure remote network device (MikroTik) via API (TCP). I know that I need a connection plugin and a module for specific task.  
If I add with\_items to my module, will it be run for every item in item list ? I need my module to take a list of dicts once and configure the device.  
Module needs to operate on a connection and it does not transfer files. This is totally different than what ansible does by default. How to do it ?
