-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add playbooks for backup & restore device templates with policies
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
# NOTE: This is example playbook that requires following variables: | ||
# manager_authentication: url, username, password | ||
# backup_dir_path | ||
|
||
- name: Example playbook with task to backup Device Templates with Policies and Feature Templates | ||
hosts: localhost | ||
gather_facts: false | ||
vars: | ||
manager_authentication: &manager_authentication | ||
url: # your manager url | ||
username: # your manager username | ||
password: # your manager password | ||
tasks: | ||
- name: Perform backup of all non factory default Device Templates (no filters == backup non factory default) | ||
cisco.catalystwan.device_templates_recovery: | ||
mode: backup | ||
# backup_dir_path: # path to create backup directory that will store exported configuration | ||
manager_credentials: | ||
<<: *manager_authentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
# NOTE: This is example playbook that requires following variables: | ||
# manager_authentication: url, username, password | ||
# backup_dir_path | ||
|
||
- name: Example playbook with task to restore Device Templates with Policies and Feature Templates | ||
hosts: localhost | ||
gather_facts: false | ||
vars: | ||
manager_authentication: &manager_authentication | ||
url: # your manager url | ||
username: # your manager username | ||
password: # your manager password | ||
tasks: | ||
- name: Restore configuration from provided backup directory | ||
cisco.catalystwan.device_templates_recovery: | ||
mode: restore | ||
# backup_dir_path: # path to backup directory from which templates will be imported | ||
manager_credentials: | ||
<<: *manager_authentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters