# OpenBSD network\_cli

**URL:** <https://forum.ansible.com/t/openbsd-network-cli/32984>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [May 20, 2020, 11:36am UTC](https://forum.ansible.com/t/openbsd-network-cli/32984 "2020-05-20T11:36:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_D1](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@John\_D1](https://forum.ansible.com/u/John_D1)\
**Post date:** [May 20, 2020, 11:36am UTC](https://forum.ansible.com/t/openbsd-network-cli/32984/1 "2020-05-20T11:36:36Z")

</div>

I’ve installed the ansible pkg via pkg\_add. I cannot get the ansible network\_cli module to work in OpenBSD. Tried in version 6.6 and also 6.7 and both hang at “using connection plugin network\_cli”. It never times out, hangs here forever.

I copied my ansible configuration files over to a fedora OS and the ansible-playbook works successfully. Has anyone used OpenBSD as an ansible control node to manage network devices via SSH? Below is the output I receive, and below that my test.yml file. If I purposely type my username/password wrong, and it still hangs here. In a tcpdump I see it connect to the router via SSH, but it just hangs.

openbsd# ansible-playbook -vvvv -u username -k -e ansible\_network\_os=ios test.yml

ansible-playbook 2.8.5  
config file = /etc/ansible/ansible.cfg  
configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/local/lib/python3.7/site-packages/ansible  
executable location = /usr/local/bin/ansible-playbook  
python version = 3.7.4 (default, Oct 11 2019, 11:15:58) [Clang 8.0.1 (tags/RELEASE\_801/final)]  
Using /etc/ansible/ansible.cfg as config file  
SSH password:  
setting up inventory plugins  
host\_list declined parsing /etc/ansible/hosts as it did not pass it’s verify\_file() method  
script declined parsing /etc/ansible/hosts as it did not pass it’s verify\_file() method  
auto declined parsing /etc/ansible/hosts as it did not pass it’s verify\_file() method  
Parsed /etc/ansible/hosts inventory source with ini plugin  
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python3.7/site-packages/ansible/plugins/callback/default.py

PLAYBOOK: test.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Positional arguments: test.yml  
verbosity: 4  
ask\_pass: True  
remote\_user: username  
connection: smart  
timeout: 10  
become\_method: sudo  
tags: (‘all’,)  
inventory: (‘/etc/ansible/hosts’,)  
extra\_vars: (‘ansible\_network\_os=ios’,)  
forks: 5  
1 plays in test.yml

PLAY [ROUTER] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
META: ran handlers

TASK [ios\_config] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /etc/ansible/test.yml:6  
\<192.168.255.1\> attempting to start connection  
\<192.168.255.1\> using connection plugin network\_cli

This is my test.yml file, pretty simple:
