# ansible-playbook error \[Juniper 220SRX\]

**URL:** <https://forum.ansible.com/t/ansible-playbook-error-juniper-220srx/28097>\
**Category:** Ansible Project\
**Created:** [July 19, 2018, 6:18pm UTC](https://forum.ansible.com/t/ansible-playbook-error-juniper-220srx/28097 "2018-07-19T18:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jongwon\_Kim](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jongwon\_Kim](https://forum.ansible.com/u/Jongwon_Kim)\
**Post date:** [July 19, 2018, 6:18pm UTC](https://forum.ansible.com/t/ansible-playbook-error-juniper-220srx/28097/1 "2018-07-19T18:18:33Z")

</div>

Hi

One of our Juniper SRX220 doesn’t work with ansible-playbook.  
the system info is as follow.

kim3@MRAC-BH-RTR\> show version  
Hostname: MRAC-BH-RTR  
Model: srx220h2  
JUNOS Software Release [12.1X44-D35.5]

When I run ansible-playbook , I got below message and hanged up.

I have interrupted execution because It didn’t get result properly.

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: `fatal: [BH-FW]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_6jhC7o/ansible_module_junos_facts.py\", line 379, in <module>\n main()\n File \"/tmp/ansible_6jhC7o/ansible_module_junos_facts.py\", line 361, in main\n inst.populate()\n File \"/tmp/ansible_6jhC7o/ansible_module_junos_facts.py\", line 227, in populate\n reply = exec_rpc(self.module, tostring(ele))\n File \"/tmp/ansible_6jhC7o/ansible_modlib.zip/ansible/module_utils/network/common/netconf.py\", line 47, in exec_rpc\n File \"/tmp/ansible_6jhC7o/ansible_modlib.zip/ansible/module_utils/network/common/netconf.py\", line 70, in __rpc__ \n File \"/tmp/ansible_6jhC7o/ansible_modlib.zip/ansible/module_utils/network/common/netconf.py\", line 102, in parse_rpc_error\nansible.module_utils.connection.ConnectionError: Unexpected session close\nIN_BUFFER:`\n\<rpc-reply xmlns="urn:ietf ![Smiley Tongue](https://jnet.i.lithium.com/i/smilies/16x16_smiley-tongue.png "Smiley Tongue")arams:xml:ns:netconf:base:1.0" xmlns:junos="[[http://xml.juniper.net/junos/12.1X44/junos\](http://xml.juniper.net/junos/12.1X44/junos%5C)]([http://xml.juniper.net/junos/12.1X44/junos/](http://xml.juniper.net/junos/12.1X44/junos/))" xmlns:nc="urn:ietf ![Smiley Tongue](https://jnet.i.lithium.com/i/smilies/16x16_smiley-tongue.png "Smiley Tongue")arams:xml:ns:netconf:base:1.0" message-id="urn:uuid:bfa1e55d-38ca-473b-90ef-7dc31ea938ed"\>\n\<interface-information xmlns="[[http://xml.juniper.net/junos/12.1X44/junos-interface\](http://xml.juniper.net/junos/12.1X44/junos-interface%5C)]([http://xml.juniper.net/junos/12.1X44/junos-interface/](http://xml.juniper.net/junos/12.1X44/junos-interface/))" junos:style="normal"\>\n\n\nge-0/0/0\n\n\<admin-status junos:format="Enabled"\>\nup\n\n\nup\n\n\n134\n\n\n508\n\n\n137\n\n\ninternet#1-twc\n\n\nEthernet\n\n\n1514\n\n\ndisabled\n\n\nFull-duplex\n\n\n1000mbps\n\n\nnone\n\n\nnone\n\n\ndisabled\n\n\nenabled\n\n\nenabled\n\n\nonline\n\n\n\n\n\n\n\n\n0x0\n\n\n\n\n\n\n\n8\n\n\n8\n\n\n\n0\n\n\n0\n\n\n88:a2:5e:62:3a:e5\n\n\n88:a2:5e:62:3a:e5\n\</hardware-physical-
