Timotej Lazar
457ab7d3b7
And group them into vrf_prefixes for VLAN networks and bgp_prefixes for servers plugged directly into fabric. This should reduce the number of queries to NetBox when configuring firewalls and exit switches. Not sure but I think set_fact helps to avoid queries (as opposed to setting group_vars).
33 lines
380 B
YAML
33 lines
380 B
YAML
- hosts: '*'
|
|
roles:
|
|
- facts
|
|
|
|
# Set up fabric.
|
|
- hosts: spine-*
|
|
roles:
|
|
- spine
|
|
|
|
- hosts: leaf-*
|
|
roles:
|
|
- leaf
|
|
|
|
- hosts: exit-*
|
|
roles:
|
|
- exit
|
|
|
|
# Set up access switches.
|
|
- hosts: access-*, sw-*
|
|
gather_facts: false
|
|
roles:
|
|
- access
|
|
|
|
# Set up firewall.
|
|
- hosts: fw-*
|
|
roles:
|
|
- firewall
|
|
|
|
- hosts: zid
|
|
roles:
|
|
- certbot_dns
|
|
- firewall_master
|