# stacking connection plugins

**URL:** <https://forum.ansible.com/t/stacking-connection-plugins/14755>\
**Category:** Ansible Developer\
**Created:** [March 11, 2014, 9:18pm UTC](https://forum.ansible.com/t/stacking-connection-plugins/14755 "2014-03-11T21:18:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 11, 2014, 9:18pm UTC](https://forum.ansible.com/t/stacking-connection-plugins/14755/1 "2014-03-11T21:18:07Z")

</div>

Hi!  
I’m currently working with some OpenVZ containers, and provisioning them by using a custom “vzctl exec over ssh” connection plugin (which I can’t share now, as it was made on my employers time).  
I’d love to see a dedicated API for connection plugins that mostly just wrap commands and change put/fetch paths, so my question is:  
Would it be possible to have separate “base” and “wrapper” plugins for connections, such that wrappers can be stacked on top of a base plugin?  
And are there other people here that would find it useful?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [March 11, 2014, 10:11pm UTC](https://forum.ansible.com/t/stacking-connection-plugins/14755/2 "2014-03-11T22:11:06Z")

</div>

So connection plugins do have an API.

There won’t be a way of “nesting” them though.
