# question about LocalAnsibleModule

**URL:** <https://forum.ansible.com/t/question-about-localansiblemodule/23643>\
**Category:** Ansible Developer\
**Created:** [February 5, 2017, 11:52pm UTC](https://forum.ansible.com/t/question-about-localansiblemodule/23643 "2017-02-05T23:52:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim1](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tim1](https://forum.ansible.com/u/Tim1)\
**Post date:** [February 5, 2017, 11:52pm UTC](https://forum.ansible.com/t/question-about-localansiblemodule/23643/1 "2017-02-05T23:52:18Z")

</div>

Can the devs (privateip) clarify what this PR does as I’m not quite groking it

[https://github.com/ansible/ansible/commit/0cef38cf02f3bd4cc678201f7a10eb80464d8a72](https://github.com/ansible/ansible/commit/0cef38cf02f3bd4cc678201f7a10eb80464d8a72)

Does this allow me to use a module as a local module even if “connection:” is “ssh”? or does this allow me to call another module on the remote machine from the task’s module?

I see it used primarily in the network modules right now

Thanks,  
-tim

---

<div class="post-metadata">

**Author:** ![psprygada](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@psprygada](https://forum.ansible.com/u/psprygada)\
**Post date:** [February 6, 2017, 2:09pm UTC](https://forum.ansible.com/t/question-about-localansiblemodule/23643/2 "2017-02-06T14:09:35Z")

</div>

Hi Tim,

Its designed to work with connection plugins that require a persistent, interactive connection (think CL) to the remote host. For 2.3 the only supported connection plugins for use with LocalAnsibleModule will be network\_cli and netconf. The answer to both of your questions is no. When using any other connection plugin, the code path remains unchanged and the implementation will use AnsibleModule.

Peter
