diff options
-rw-r--r-- | chaos-at-home/ch-sw1.yml | 8 | ||||
-rw-r--r-- | inventory/host_vars/ch-sw1.yml | 23 | ||||
-rw-r--r-- | inventory/hosts.ini | 2 |
3 files changed, 32 insertions, 1 deletions
diff --git a/chaos-at-home/ch-sw1.yml b/chaos-at-home/ch-sw1.yml new file mode 100644 index 00000000..0d86fa48 --- /dev/null +++ b/chaos-at-home/ch-sw1.yml @@ -0,0 +1,8 @@ +--- +- name: bootstrap + hosts: ch-sw1 + gather_facts: no + roles: + - dellos6/bootstrap + - dellos6/base + - dellos6/layer2 diff --git a/inventory/host_vars/ch-sw1.yml b/inventory/host_vars/ch-sw1.yml new file mode 100644 index 00000000..9ba68ed5 --- /dev/null +++ b/inventory/host_vars/ch-sw1.yml @@ -0,0 +1,23 @@ +--- +switch_interfaces_yaml: | + - spec: Te1/0/1 + description: "sw0" + switchport_mode: trunk + + - spec: Te1/0/2 + description: "RFU" + switchport_mode: trunk + + - spec: range Te1/0/3-4 + vlan: {{ network_zones['lan'].vlan }} + - spec: range Gi1/0/5-16 + vlan: {{ network_zones['lan'].vlan }} + + - spec: range Gi1/0/17-22 + vlan: {{ network_zones['iot'].vlan }} + + - spec: range Gi1/0/23-27 + vlan: {{ network_zones['svc'].vlan }} + + - spec: Gi1/0/28 + vlan: {{ network_zones['mgmt'].vlan }} diff --git a/inventory/hosts.ini b/inventory/hosts.ini index ac336af2..42a4434e 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -39,7 +39,7 @@ ansible_port=22 [chaos_at_home_switches] ch-sw0 host_name=sw0 ansible_host=192.168.42.200 -ch-sw1 host_name=sw1 +ch-sw1 host_name=sw1 ansible_host=192.168.42.201 [chaos_at_home_ap] ch-ap0 host_name=ap0 |