This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
2022-11-09 23:29:44 +00:00
|
|
|
---
|
|
|
|
- name: generate configuration for stock firmware
|
|
|
|
hosts:
|
|
|
|
- switches_stock
|
|
|
|
gather_facts: no
|
|
|
|
connection: local
|
|
|
|
tasks:
|
|
|
|
- name: create output directory
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
path: switch-configs-stock/
|
|
|
|
|
|
|
|
- name: generate configuration
|
|
|
|
template:
|
2023-01-05 03:16:52 +00:00
|
|
|
src: templates/{{ sw_type }}-stock.cfg.j2
|
2022-11-09 23:29:44 +00:00
|
|
|
dest: "switch-configs-stock/{{ inventory_hostname }}.cfg"
|