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:

---


- hosts: 192.168.255.1

  connection: network_cli

  gather_facts: false

  tasks:

    - ios_config:

          lines:

            - hostname iwasupdated

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4df7ad56-735c-452f-8d25-0e79b8d481a8%40googlegroups.com.

Reply via email to