connect to remote device

hello all,

i need your help,

I want to connect to an equipment remotely and get information about it, for example its version
here is the playbook I use and here is the ancible file how it is configured

ansible playbook