Added comments to the IOS backup play

This commit is contained in:
Vlad Raducanu 2021-04-22 09:49:53 +01:00
parent f3939d26f2
commit 27098c5df0

View File

@ -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