how can i use delegate_to with special connection plugin

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