Send commands to a not supported router

12 views
Skip to first unread message

Juan Manuel Fernandez

unread,
May 16, 2018, 9:24:56 PM5/16/18
to Ansible Project
Hi!
I'm a newbie to the ansible world.
I want to generate a .yml file that send commands to a router.
I try with routers cisco with the ios_command module and works fine but y want to do the same with other router of other provider and it's failed.
Do you know a module that permit any commands without validations? (I want to make the check on the yml).
Thanks!

Veera Kumar

unread,
May 16, 2018, 10:37:20 PM5/16/18
to ansible...@googlegroups.com
Couple of ways we have,

We can group Cisco and other vendor devices.
Then we can add condition only when hostname matches with Cisco group will execute the command. On other devices this task will be slipped.

Still you are not familiar with group concepts, then simply add ignore_errors: yes on this task. Means even iOS command not able to execute on other vendor devices, it ll keep doing other tasks on this play.

Thx, Veera

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/82556884-1917-49c8-8522-6b3013f6e8b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages