Another option is to use YAML anchors, but variables are probably better.
- name: Cisco stuff
cisco.nxos.nxos_static_routes:
config:
- afi: ipv4
routes:
- dest: 192.168.2.0/24
next_hops: &hops
- interface: eth1/8
forward_router_address: 20.0.0.5
- interface: eth1/9
forward_router_address: 20.0.0.13
- dest: 192.168.4.0/24
next_hops: *hops
- dest: 192.168.6.0/24
next_hops: *hops
--
----------
Brian Coca
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CACVha7eoNsa0PRfVseLM6LP4XhbCg8H57fk6O3PU_m-XpKVKfg%40mail.gmail.com.