dellos6_command error on dell N2048

10 views
Skip to first unread message

Ramiro de Zavalia

unread,
Nov 28, 2016, 7:05:36 PM11/28/16
to Ansible Project
Hello,

I'm testing dell06_command on a dell N2048 switch without luck. I have this simple playbook:

---

 - hosts: 10.10.10.10
   gather_facts: no
   connection: local

   vars:
    cli:
      host: "10.10.10.10"
      username: "user1"
      password: "secret1"
      auth_pass: "secret2"
      transport: cli

   tasks:
   - name: run show version on remote devices
     dellos6_command:
       commands: "show version"
       provider: "{{ cli }}"
       authorize: "yes"
       wait_for: result[0] contains Dell

But I'm getting this error:

An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_80zt7ejs/ansible_module_dellos6_command.py", line 212, in <module>
    main()
  File "/tmp/ansible_80zt7ejs/ansible_module_dellos6_command.py", line 178, in main
    runner.add_command(cmd)
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/netcli.py", line 147, in add_command
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/network.py", line 117, in cli
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/network.py", line 148, in connect
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/dellos6.py", line 165, in connect
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/shell.py", line 226, in connect
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/shell.py", line 116, in open
  File "/tmp/ansible_80zt7ejs/ansible_modlib.zip/ansible/module_utils/shell.py", line 130, in receive
TypeError: string argument expected, got 'bytes'

From the switch log, the module is able to login into the switch. Not sure what I'm doing wrong.

Any ideas ?

Thanks,
Ramiro.

Reply all
Reply to author
Forward
0 new messages