network/setup.yml
Timotej Lazar 48eee50203 facts: only look up prefixes and VLANs once
Also drop "access-*" hosts from setup playbook as they have all been
renamed to "sw-*".
2025-08-01 13:40:14 +02:00

28 lines
329 B
YAML

- hosts: '*'
gather_facts: false
roles:
- facts
# Set up fabric.
- hosts: spine-*
roles:
- spine
- hosts: leaf-*
roles:
- leaf
- hosts: exit-*
roles:
- exit
# Set up access switches.
- hosts: sw-*
gather_facts: false
roles:
- access
# Set up firewall.
- hosts: fw-*
roles:
- firewall