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 On Thu, May 17, 2018, 6:55 AM Juan Manuel Fernandez <[email protected]> wrote: > 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! > > -- > 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/82556884-1917-49c8-8522-6b3013f6e8b5%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/82556884-1917-49c8-8522-6b3013f6e8b5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAOfyRij6LbAa-2jGwtGLj4SWhZGmAZUZQbCinPHmdPpW9i4rkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
