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.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/515d7a46-217a-4197-b5fe-9b7cb6c8adae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to