diff --git a/ansible-inventory b/ansible-inventory index bf759a2..0e70c66 100644 --- a/ansible-inventory +++ b/ansible-inventory @@ -31,9 +31,9 @@ sw-access01 ip=10.84.1.11 base_mac=bc:cf:4f:e3:bb:8d sw-access02 ip=10.84.1.12 base_mac=bc:cf:4f:e3:ac:39 [switches_stock] -ffl-ans-sw-distribution01 ip=10.85.1.11 base_mac=5c:e2:8c:60:82:fb -ffl-ans-sw-access01 ip=10.85.1.12 base_mac=04:bf:6d:15:c6:b3 -ffl-ans-sw-access02 ip=10.85.1.13 base_mac=04:bf:6d:15:c6:92 +ffl-ans-sw-distribution01 ip=10.85.1.11 base_mac=5c:e2:8c:60:82:fb sw_type=gs1900-10hp +ffl-ans-sw-access01 ip=10.85.1.12 base_mac=04:bf:6d:15:c6:b3 sw_type=gs1900-10hp +ffl-ans-sw-access02 ip=10.85.1.13 base_mac=04:bf:6d:15:c6:92 sw_type=gs1900-10hp [gateways] gw-core01 ip=10.84.1.1 diff --git a/playbook_create_switch_configs_stock.yml b/playbook_create_switch_configs_stock.yml index 4876ec3..9036eaf 100644 --- a/playbook_create_switch_configs_stock.yml +++ b/playbook_create_switch_configs_stock.yml @@ -12,5 +12,5 @@ - name: generate configuration template: - src: templates/gs1900-10hp-stock.cfg.j2 + src: templates/{{ sw_type }}-stock.cfg.j2 dest: "switch-configs-stock/{{ inventory_hostname }}.cfg"