From 27098c5df0275ed38428ae91d8425719d4834653 Mon Sep 17 00:00:00 2001 From: Vlad Raducanu Date: Thu, 22 Apr 2021 09:49:53 +0100 Subject: [PATCH] Added comments to the IOS backup play --- ios_devices/device_backup.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ios_devices/device_backup.yml b/ios_devices/device_backup.yml index 85201c5..24ceb6e 100644 --- a/ios_devices/device_backup.yml +++ b/ios_devices/device_backup.yml @@ -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