All, I'm just beginning discovery of using ansible in my environment, and am trying to get an understanding of its capabilities.
I've been trying to figure out how to send command to generic network devices. That is devices with no module, and not an option in ansible_network_os. For example, old HP Procurve switches, or menu driven devices such as Adtran muxes. I assume I'll be a little limited to what I can do, but I would think that raw and/or expect could be made to work The errors I'm getting are similar to: ... "stderr": "/bin/sh: 1: -c not found\n", ... I've tried it adhoc like: ansible TEST -c local -u username -k -m raw -a "show run" # Not the actual command, I'm doing it from memory or in a playbook such as: --- hosts: TEST connection: local # or network_cli gather_facts: no vars: username: username # when attempting network_cli vars_prompt: ansible_ssh_pass: password123 # when attempting network_cli tasks: - name: Testing raw: show run # I've also tried adding args: executable: "", but same results. -- 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/137cb2ea-73d9-487e-8cbe-81a584f32a74%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.