Note
This module is part of the cisco.dnac collection (version 6.31.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install cisco.dnac. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: cisco.dnac.rma_workflow_manager.
New in cisco.dnac 6.6.0
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
ccc_poll_interval integer | The interval, in seconds, for polling Cisco Catalyst Center. Default: |
config list / elements=dictionary / required | A list of faulty and replacement device details for initiating the RMA workflow. |
|
faulty_device_ip_address string |
The IP address of the faulty device. Example: 204.192.3.40 |
|
faulty_device_name string |
The name or hostname of the faulty device. Example: SJ-EN-9300.cisco.local |
|
faulty_device_serial_number string |
The serial number of the faulty device. Example: FJC2327U0S2 |
|
replacement_device_ip_address string |
The IP address of the replacement device. Example: 204.1.2.5 |
|
replacement_device_name string |
The name or hostname of the replacement device. Example: SJ-EN-9300.cisco.local |
|
replacement_device_serial_number string |
The serial number of the replacement device. Example: FCW2225C020 |
config_verify boolean | Set to True to verify the Cisco Catalyst Center configuration after applying the playbook config. Choices:
|
dnac_api_task_timeout integer | 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. Default: |
dnac_debug boolean | Indicates whether debugging is enabled in the Cisco Catalyst Center SDK. Choices:
|
dnac_host string / required | The hostname of the Cisco Catalyst Center. |
dnac_log boolean | 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. Choices:
|
dnac_log_append boolean | Determines the mode of the file. Set to True for ‘append’ mode. Set to False for ‘write’ mode. Choices:
|
dnac_log_file_path string | 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. Default: |
dnac_log_level string | 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. Default: |
dnac_password string | The password for authentication at the Cisco Catalyst Center. |
dnac_port string | Specifies the port number associated with the Cisco Catalyst Center. Default: |
dnac_task_poll_interval integer | Specifies the interval in seconds between successive calls to the API to retrieve task details. Default: |
dnac_username aliases: user string | The username for authentication at the Cisco Catalyst Center. Default: |
dnac_verify boolean | Flag to enable or disable SSL certificate verification. Choices:
|
dnac_version string | Specifies the version of the Cisco Catalyst Center that the SDK should use. Default: |
resync_retry_count integer | The number of times to retry resynchronization. Default: |
resync_retry_interval integer | The interval, in seconds, between resynchronization retries. Default: |
state string | The ‘replaced’ state is used to indicate the replacement of faulty network devices with replacement network device in the workflow. The ‘deleted’ state is used to unmark the faulty network devices in the workflow. Choices:
|
timeout_interval integer | The timeout interval, in seconds, for operations. Default: |
validate_response_schema boolean | Flag for Cisco Catalyst Center SDK to enable the validation of request bodies against a JSON schema. Choices:
|
Note
check_mode
- name: RMA workflow for faulty device replacement using device names
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: replaced
config:
- faulty_device_name: "SJ-EN-9300.cisco.local"
replacement_device_name: "SJ-EN-9300.cisco-1.local"
register: result
- name: RMA workflow for faulty device replacement using IP addresses
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: replaced
config:
- faulty_device_ip_address: "204.192.3.40"
replacement_device_ip_address: "204.1.2.5"
register: result
- name: RMA workflow for faulty device replacement using serial numbers
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: replaced
config:
- faulty_device_serial_number: "FJC2327U0S2"
replacement_device_serial_number: "FCW2225C020"
register: result
- name: RMA workflow for unmark faulty device using device names
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: deleted
config:
- faulty_device_name: "SJ-EN-9300.cisco.local"
register: result
- name: RMA workflow for unmark faulty device using IP addresses
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: deleted
config:
- faulty_device_ip_address: 204.1.2.9
register: result
- name: RMA workflow for unmark faulty device using serial numbers
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: deleted
config:
- faulty_device_serial_number: "FJC2327U0S2"
register: result
- name: RMA workflow for unmark faulty device using all
cisco.dnac.rma_workflow_manager:
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: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: deleted
config:
- faulty_device_name: "SJ-EN-9300.cisco.local"
- faulty_device_ip_address: 204.1.2.9
- faulty_device_serial_number: "FJC2327U0S2"
register: result
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
response_1 dictionary | Object with API execution details as returned by the Cisco Catalyst Center Python SDK. Returned: always Sample: |
response_2 dictionary | Object with API execution details as returned by the Cisco Catalyst Center Python SDK. Returned: always Sample: |
response_3 dictionary | Object with API execution details as returned by the Cisco Catalyst Center Python SDK. Returned: always Sample: |
response_4 dictionary | Object with API execution details as returned by the Cisco Catalyst Center Python SDK. Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/cisco/dnac/rma_workflow_manager_module.html