# how can i use delegate\_to with special connection plugin

**URL:** <https://forum.ansible.com/t/how-can-i-use-delegate-to-with-special-connection-plugin/21872>\
**Category:** Ansible Developer\
**Created:** [June 28, 2016, 7:48am UTC](https://forum.ansible.com/t/how-can-i-use-delegate-to-with-special-connection-plugin/21872 "2016-06-28T07:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fans\_Miea](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Fans\_Miea](https://forum.ansible.com/u/Fans_Miea)\
**Post date:** [June 28, 2016, 7:48am UTC](https://forum.ansible.com/t/how-can-i-use-delegate-to-with-special-connection-plugin/21872/1 "2016-06-28T07:48:29Z")

</div>

i rewrite the connection plugin, and i can use it with

- name: check version  
shell: sudo -u admin rpm -q tair | grep -v {{ version }}

but when i use it like

- name: check version  
shell: sudo -u admin rpm -q tair | grep -v {{ version }}  
delegate\_to: “{{ other\_ip }}”

it return UNREACHABLE! =\> {“changed”: false, “msg”: “Authentication failed.”, “unreachable”: true}

it can work fine with ssh, but can’t with my plugin. someone know how to solve it? thankyou
