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/dac8dfd4-9d85-47b8-98ef-00c37301ee7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.