# Ansible Network, junos\_command.

**URL:** <https://forum.ansible.com/t/ansible-network-junos-command/21094>\
**Category:** Ansible Project\
**Created:** [April 7, 2016, 2:41pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094 "2016-04-07T14:41:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Bengtsson](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@Oscar\_Bengtsson](https://forum.ansible.com/u/Oscar_Bengtsson)\
**Post date:** [April 7, 2016, 2:41pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094/1 "2016-04-07T14:41:03Z")

</div>

Hi,  
I’m trying to get a playbook to connect to a juniper switch and do a ‘show version’  
I’m totally new to this and wanted to do this without the use of yaml files for username and password.  
This is the code for the playbook:

---

<div class="post-metadata">

**Author:** ![Matt\_Hite](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Matt\_Hite](https://forum.ansible.com/u/Matt_Hite)\
**Post date:** [April 11, 2016, 5:33pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094/2 "2016-04-11T17:33:19Z")

</div>

Is netconf enabled under “system services”?

---

<div class="post-metadata">

**Author:** ![Oscar\_Bengtsson](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@Oscar\_Bengtsson](https://forum.ansible.com/u/Oscar_Bengtsson)\
**Post date:** [April 13, 2016, 1:11pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094/3 "2016-04-13T13:11:29Z")

</div>

Hi,  
From what I understood netconf is not needed for this module, but yes it is enabled from when i tried using junipers own-developed role from ansible-galaxy.  
I don’t want to use netconf as most vendors don’t have it.

---

<div class="post-metadata">

**Author:** ![Mike\_Biancaniello](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Post date:** [April 13, 2016, 1:59pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094/4 "2016-04-13T13:59:10Z")

</div>

might there be an application firewall between you and the switch that allows openssh, but not paramiko?

---

<div class="post-metadata">

**Author:** ![Oscar\_Bengtsson](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@Oscar\_Bengtsson](https://forum.ansible.com/u/Oscar_Bengtsson)\
**Post date:** [April 13, 2016, 8:30pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094/5 "2016-04-13T20:30:33Z")

</div>

I will check it out tomorrow thanks!
