My guess it is for nxapi API. On Friday, March 25, 2016 at 6:41:02 PM UTC-7, Roger Gomez wrote: > > Normally when we use regular plays, we define a group of hosts and all the > tasks in the playbook are executed in the list of hosts defined. For the > case of the Cisco modules we need an additional host inside each module > declaration for the tasks: > --- > - hosts: > - some_host > gather_facts: no > tasks: > - nxos_command: > username: ansible > commands: > - show ip route > transport: cli > use_ssl: no > host: some_host > > > I would like to understand why we need this extra-declaration of host (I > already understand that was written like that :) ) and if there is a way > that we can use this modules to behave like any other modules we use in > linux where we only need to declare a host once. > 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/d7ded3ad-e373-4277-aaec-234e20fa0f34%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
