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!
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