Added comments to the IOS backup play
This commit is contained in:
parent
f3939d26f2
commit
27098c5df0
@ -1,5 +1,5 @@
|
||||
---
|
||||
## This playbook backs up the device configuration
|
||||
## This playbook backs up the device configuration to a specific folder and tags it with timestamps
|
||||
|
||||
- name: Backup device configuration with timestamps
|
||||
hosts: homekit
|
||||
@ -10,11 +10,15 @@
|
||||
|
||||
tasks:
|
||||
|
||||
#Collect device information in order to use the hostname in the backup file name
|
||||
|
||||
- name: Collect device facts
|
||||
ios_facts:
|
||||
gather_subset: all
|
||||
register: current_config
|
||||
|
||||
#Perform the backup and save it to a specific folder - in this case the path is set to be outside the GIT repository (for security purposes)
|
||||
|
||||
- name: Save configuration and back it up to local folder
|
||||
ios_config:
|
||||
backup: yes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user