ventilaar
/
sdn-cursus
Archived
1
Fork 0

getest werkt

This commit is contained in:
Ventilaar 2022-01-10 11:10:15 +01:00
parent 2542ad15d9
commit cf483e5991
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
- hosts: routers
gather_facts: false
connection: network_cli
tasks:
- name: Running config opvragen
ios_command:
commands:
- show run
register: config
- name: Config uitschrijven
copy:
content: "{{ config.stdout[0] }}"
dest: "./backup/{{ inventory_hostname }}_{{ '%Y-%m-%d' | strftime }}T{{ '%H:%M:%S' | strftime }}.txt"

View File

@ -0,0 +1 @@
dit folder moet bestaan om de configuratie backups op te slaan