getest werkt
This commit is contained in:
parent
2542ad15d9
commit
cf483e5991
|
@ -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"
|
|
@ -0,0 +1 @@
|
|||
dit folder moet bestaan om de configuratie backups op te slaan
|
Reference in New Issue