Adhoc commands hang when connecting to Juniper devices

Hi all,

I’m new to Ansible and I’m trying to get started connecting to the devices in my lab.

I’m starting with adhoc commands and will move onto playbooks as soon as I’m confortable with Adhoc.

When I run the below command and enter my password the cursor blinks (about 10 times) and then stops. The command prompt then does nothing. I can interupt the command with Ctrl+C, however if I don’t interupt the command and just leave it nothing happens, it hang there seemingly indefinately. The command I’m running is:

ansible ip_address -m raw -a “show version” -u username -k

To be clear it works fine when connecting to Cisco devices. So I’m wondering if it is a Juniper issue. But I’m hopefully someone might have seen this issues before and there might be an easy fix :slight_smile:

Many Thanks to anyone who can offer guidenance.

Kind Regards,
Tom