I am trying to do some cli based config on a router via ansible,
I can execute command on shell via ansible but is it possible to add any
new config via cli command ?
Executed below command via yml but did not work,
I am trying to execute one cli command(example - oam-enable) by going to
cli->config->oam-enable->commit
Please let me know if it is possible.
- name: run shell for cli based command
shell: | set timeout 100 spawn ssh security@{{ cimc_host }} expect
"[email protected]'s password:" send "{{ "xyz" }}" config oam-enable
commit set timeout 50 #send "{{ cimc_command }}" exit 0
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b8a3e62b-e20c-4dca-a0c5-1acea6a51e4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.