.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. role:: ansible-attribute-support-label .. role:: ansible-attribute-support-property .. role:: ansible-attribute-support-full .. role:: ansible-attribute-support-partial .. role:: ansible-attribute-support-none .. role:: ansible-attribute-support-na .. role:: ansible-option-type .. role:: ansible-option-elements .. role:: ansible-option-required .. role:: ansible-option-versionadded .. role:: ansible-option-aliases .. role:: ansible-option-choices .. role:: ansible-option-choices-default-mark .. role:: ansible-option-default-bold .. role:: ansible-option-configuration .. role:: ansible-option-returned-bold .. role:: ansible-option-sample-bold .. Anchors .. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title cisco.dnac.backup_and_restore_playbook_config_generator module -- Generate YAML playbook for 'backup\_and\_restore\_workflow\_manager' module. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This module is part of the `cisco.dnac collection `_ (version 6.49.0). To install it, use: :code:`ansible-galaxy collection install cisco.dnac`. You need further requirements to be able to use this module, see :ref:`Requirements ` for details. To use it in a playbook, specify: :code:`cisco.dnac.backup_and_restore_playbook_config_generator`. .. version_added .. rst-class:: ansible-version-added New in cisco.dnac 6.44.0 .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Generates YAML configurations compatible with the backup\_and\_restore\_workflow\_manager module, reducing manual playbook creation effort and enabling programmatic modifications. - Represents NFS server configurations and backup storage configurations for backup and restore operations on Cisco Catalyst Center. - Supports extraction of NFS configurations, backup storage configurations with encryption and retention policies. - Generated YAML format is directly usable with backup\_and\_restore\_workflow\_manager module for infrastructure as code. .. Aliases .. Requirements .. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module_requirements: Requirements ------------ The below requirements are needed on the host that executes this module. - dnacentersdk \>= 2.9.3 - python \>= 3.9 .. Options Parameters ---------- .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config: .. rst-class:: ansible-option-title **config** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
A dictionary of filters for generating YAML playbook compatible with the 'backup\_and\_restore\_workflow\_manager' module. Filters specify which components to include in the YAML configuration file. If \ :literal:`components\_list`\ is specified, only those components are included, regardless of the filters. \ :literal:`component\_specific\_filters`\ is mandatory. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters: .. rst-class:: ansible-option-title **component_specific_filters** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
Required when \ :literal:`config`\ is provided. Filters to specify which components to include in the YAML configuration file. If \ :literal:`components\_list`\ is specified, only those components are included, regardless of other filters. If component filter blocks are provided (for example \ :literal:`nfs\_configuration`\ ), those components are automatically added to \ :literal:`components\_list`\ when missing. If no component filter blocks are provided, \ :literal:`components\_list`\ is mandatory and must not be empty. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters/backup_storage_configuration: .. rst-class:: ansible-option-title **backup_storage_configuration** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` .. raw:: html
- .. raw:: html
Backup storage configuration filtering options by server type only. If not specified, all backup storage configurations are included. Only server\_type filtering is supported for backup storage. Other filter parameters like mount\_path or retention\_period are not supported. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters/backup_storage_configuration/server_type: .. rst-class:: ansible-option-title **server_type** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Server type for filtering backup configurations. NFS type represents network-based backup storage. PHYSICAL\_DISK type represents local disk backup storage. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"NFS"` - :ansible-option-choices-entry:`"PHYSICAL\_DISK"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters/components_list: .. rst-class:: ansible-option-title **components_list** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
List of components to include in the YAML configuration file. Valid values are - NFS Configuration "nfs\_configuration" - Backup Storage Configuration "backup\_storage\_configuration" Required when no component-specific filter blocks are provided. Empty list is invalid when no component-specific filter blocks are provided. Supports multiple filter entries for filtering multiple NFS servers. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"nfs\_configuration"` - :ansible-option-choices-entry:`"backup\_storage\_configuration"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters/nfs_configuration: .. rst-class:: ansible-option-title **nfs_configuration** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` .. raw:: html
- .. raw:: html
NFS configuration details to filter NFS servers. Both server\_ip and source\_path must be provided together for filtering. If not specified, all NFS configurations are included. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters/nfs_configuration/server_ip: .. rst-class:: ansible-option-title **server_ip** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Server IP address of the NFS server. Must be provided along with source\_path for filtering. Used for exact match filtering of NFS configurations. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-config/component_specific_filters/nfs_configuration/source_path: .. rst-class:: ansible-option-title **source_path** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Source path on the NFS server. Must be provided along with server\_ip for filtering. Used for exact match filtering of NFS configurations. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_api_task_timeout: .. rst-class:: ansible-option-title **dnac_api_task_timeout** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Defines the timeout in seconds for API calls to retrieve task details. If the task details are not received within this period, the process will end, and a timeout notification will be logged. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`1200` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_debug: .. rst-class:: ansible-option-title **dnac_debug** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Indicates whether debugging is enabled in the Cisco Catalyst Center SDK. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_host: .. rst-class:: ansible-option-title **dnac_host** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
The hostname of the Cisco Catalyst Center. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_log: .. rst-class:: ansible-option-title **dnac_log** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Flag to enable/disable playbook execution logging. When true and dnac\_log\_file\_path is provided, - Create the log file at the execution location with the specified name. When true and dnac\_log\_file\_path is not provided, - Create the log file at the execution location with the name 'dnac.log'. When false, - Logging is disabled. If the log file doesn't exist, - It is created in append or write mode based on the "dnac\_log\_append" flag. If the log file exists, - It is overwritten or appended based on the "dnac\_log\_append" flag. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_log_append: .. rst-class:: ansible-option-title **dnac_log_append** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Determines the mode of the file. Set to True for 'append' mode. Set to False for 'write' mode. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_log_file_path: .. rst-class:: ansible-option-title **dnac_log_file_path** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Governs logging. Logs are recorded if dnac\_log is True. If path is not specified, - When 'dnac\_log\_append' is True, 'dnac.log' is generated in the current Ansible directory; logs are appended. - When 'dnac\_log\_append' is False, 'dnac.log' is generated; logs are overwritten. If path is specified, - When 'dnac\_log\_append' is True, the file opens in append mode. - When 'dnac\_log\_append' is False, the file opens in write (w) mode. - In shared file scenarios, without append mode, content is overwritten after each module execution. - For a shared log file, set append to False for the 1st module (to overwrite); for subsequent modules, set append to True. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"dnac.log"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_log_level: .. rst-class:: ansible-option-title **dnac_log_level** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Sets the threshold for log level. Messages with a level equal to or higher than this will be logged. Levels are listed in order of severity [CRITICAL, ERROR, WARNING, INFO, DEBUG]. CRITICAL indicates serious errors halting the program. Displays only CRITICAL messages. ERROR indicates problems preventing a function. Displays ERROR and CRITICAL messages. WARNING indicates potential future issues. Displays WARNING, ERROR, CRITICAL messages. INFO tracks normal operation. Displays INFO, WARNING, ERROR, CRITICAL messages. DEBUG provides detailed diagnostic info. Displays all log messages. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"WARNING"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_password: .. rst-class:: ansible-option-title **dnac_password** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The password for authentication at the Cisco Catalyst Center. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_port: .. rst-class:: ansible-option-title **dnac_port** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Specifies the port number associated with the Cisco Catalyst Center. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"443"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_task_poll_interval: .. rst-class:: ansible-option-title **dnac_task_poll_interval** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Specifies the interval in seconds between successive calls to the API to retrieve task details. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`2` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_username: .. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-user: .. rst-class:: ansible-option-title **dnac_username** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: user` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The username for authentication at the Cisco Catalyst Center. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"admin"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_verify: .. rst-class:: ansible-option-title **dnac_verify** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Flag to enable or disable SSL certificate verification. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-dnac_version: .. rst-class:: ansible-option-title **dnac_version** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Specifies the version of the Cisco Catalyst Center that the SDK should use. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"2.2.3.3"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-file_mode: .. rst-class:: ansible-option-title **file_mode** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
File write mode for the generated YAML configuration file. The overwrite option replaces existing file content with new content. The append option adds new content to the end of existing file. Defaults to overwrite if not specified. file\_mode is only applicable when file\_path is provided. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`"overwrite"` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`"append"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-file_path: .. rst-class:: ansible-option-title **file_path** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Path where the YAML configuration file will be saved. If not provided, the file will be saved in the current working directory with a default file name \ :literal:`backup\_and\_restore\_playbook\_config\_\.yml`\ . For example, \ :literal:`backup\_and\_restore\_playbook\_config\_2026-01-27\_14-21-41.yml`\ . Supports both absolute and relative paths. .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-state: .. rst-class:: ansible-option-title **state** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Desired state of Cisco Catalyst Center after module execution. Only gathered state is supported for extracting configurations. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`"gathered"` :ansible-option-choices-default-mark:`← (default)` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__parameter-validate_response_schema: .. rst-class:: ansible-option-title **validate_response_schema** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Flag for Cisco Catalyst Center SDK to enable the validation of request bodies against a JSON schema. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. raw:: html
.. Attributes .. Notes Notes ----- .. note:: - SDK Methods used are - backup.Backup.get\_all\_n\_f\_s\_configurations - backup.Backup.get\_backup\_configuration - Paths used are - GET /dna/system/api/v1/backupNfsConfigurations - GET /dna/system/api/v1/backupConfiguration - Requires Cisco Catalyst Center version 3.1.3.0 or higher - Only supports gathered state for extracting existing configurations - NFS filtering requires both server\_ip and source\_path together - Backup storage filtering only supports server\_type parameter - Generated YAML file format is compatible with backup\_and\_restore\_workflow\_manager module - File path supports both absolute and relative paths - Default filename includes timestamp for uniqueness - NFS details correlation matches backup mount paths with NFS destination paths automatically - Empty configurations return success with idempotent behavior - Module does not modify Catalyst Center configuration - Does not support \ :literal:`check\_mode`\ - The plugin runs on the control node and does not use any ansible connection plugins instead embedded connection manager from Cisco Catalyst Center SDK - The parameters starting with dnac\_ are used by the Cisco Catalyst Center Python SDK to establish the connection .. Seealso See Also -------- .. seealso:: \ :ref:`cisco.dnac.backup\_and\_restore\_workflow\_manager `\ Module to manage backup and restore NFS configurations in Cisco Catalyst Center. .. Examples Examples -------- .. code-block:: yaml+jinja - name: Generate YAML Configuration with both NFS and backup storage configurations cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_backup_restore_config.yaml" config: component_specific_filters: components_list: - "nfs_configuration" - "backup_storage_configuration" - name: Generate YAML for NFS-type backup storage only filtering by server_type cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_backup_storage_config.yaml" file_mode: "overwrite" config: component_specific_filters: components_list: ["backup_storage_configuration"] backup_storage_configuration: - server_type: "NFS" - name: Generate YAML for specific NFS server using exact match on server_ip and source_path cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_specific_nfs_config.yaml" config: component_specific_filters: components_list: ["nfs_configuration"] nfs_configuration: - server_ip: "172.27.17.90" source_path: "/home/nfsshare/backups/TB30" - name: Generate YAML for all configurations without filtering useful for complete system documentation cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_backup_restore_config.yaml" config: component_specific_filters: components_list: - "nfs_configuration" - "backup_storage_configuration" - name: Append YAML Configuration for multiple NFS servers to existing file cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_multiple_nfs_config.yaml" file_mode: "append" config: component_specific_filters: components_list: ["nfs_configuration"] nfs_configuration: - server_ip: "172.27.17.90" source_path: "/home/nfsshare/backups/TB30" - server_ip: "172.27.17.91" source_path: "/home/nfsshare/backups/TB31" - name: Generate YAML Configuration for Physical Disk backup storage only cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_physical_disk_backup.yaml" config: component_specific_filters: components_list: ["backup_storage_configuration"] backup_storage_configuration: - server_type: "NFS" - name: Component filter auto-adds missing component to components_list cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_component_auto_add.yaml" config: component_specific_filters: components_list: ["nfs_configuration"] backup_storage_configuration: - server_type: "NFS" - name: Equivalent explicit components_list for same filter behavior cisco.dnac.backup_and_restore_playbook_config_generator: dnac_host: "{{dnac_host}}" dnac_username: "{{dnac_username}}" dnac_password: "{{dnac_password}}" dnac_verify: "{{dnac_verify}}" dnac_port: "{{dnac_port}}" dnac_version: "{{dnac_version}}" dnac_debug: "{{dnac_debug}}" dnac_log: true dnac_log_level: "{{dnac_log_level}}" state: gathered file_path: "/tmp/catc_component_explicit.yaml" config: component_specific_filters: components_list: ["nfs_configuration", "backup_storage_configuration"] backup_storage_configuration: - server_type: "NFS" .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Key - Description * - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1: .. rst-class:: ansible-option-title **response_1** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Response from YAML configuration generation operation with execution statistics and status information. .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/msg: .. rst-class:: ansible-option-title **msg** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Status message describing operation outcome .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"YAML configuration file generated successfully for module\\nbackup\_and\_restore\_workflow\_manager\\n"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response: .. rst-class:: ansible-option-title **response** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Detailed operation results and statistics .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response/components_processed: .. rst-class:: ansible-option-title **components_processed** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Number of components successfully retrieved .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`2` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response/components_skipped: .. rst-class:: ansible-option-title **components_skipped** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Number of components skipped due to errors or no data available .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`0` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response/configurations_count: .. rst-class:: ansible-option-title **configurations_count** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Total configuration items across all components .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`5` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response/file_path: .. rst-class:: ansible-option-title **file_path** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Absolute path to generated YAML file .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` on\_success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"/tmp/backup\_restore\_config.yaml"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response/message: .. rst-class:: ansible-option-title **message** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Detailed status message with operation summary .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"YAML configuration file generated successfully for module\\nbackup\_and\_restore\_workflow\_manager\\n"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/response/status: .. rst-class:: ansible-option-title **status** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Operation status indicating success or failure .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line :ansible-option-choices:`Can only return:` - :ansible-option-choices-entry:`"success"` - :ansible-option-choices-entry:`"failed"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_1/status: .. rst-class:: ansible-option-title **status** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Overall operation status .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line :ansible-option-choices:`Can only return:` - :ansible-option-choices-entry:`"success"` - :ansible-option-choices-entry:`"failed"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_2: .. rst-class:: ansible-option-title **response_2** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
No configurations found scenario treated as successful idempotent operation .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` when\_no\_configs\_found .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`{"msg": "No backup and restore configurations found to process for module\\nbackup\_and\_restore\_workflow\_manager. Verify that NFS servers or\\nbackup configurations are set up in Catalyst Center.\\n", "response": {"components\_processed": 0, "components\_skipped": 1, "configurations\_count": 0, "message": "No backup and restore configurations found to process for module\\nbackup\_and\_restore\_workflow\_manager. Verify that NFS servers or\\nbackup configurations are set up in Catalyst Center.\\n", "status": "success"}, "status": "success"}` .. raw:: html
* - .. raw:: html
.. _ansible_collections.cisco.dnac.backup_and_restore_playbook_config_generator_module__return-response_3: .. rst-class:: ansible-option-title **response_3** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Operation failed due to invalid parameters, API errors, or file write issues .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` on\_failure .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`{"msg": "Failed to write YAML configuration to file: /invalid/path", "response": {"message": "Failed to write YAML configuration to file: /invalid/path", "status": "failed"}, "status": "failed"}` .. raw:: html
.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Priyadharshini B (@pbalaku2) - Madhan Sankaranarayanan (@madhansansel) .. Extra links Collection links ~~~~~~~~~~~~~~~~ .. raw:: html .. Parsing errors