cisco.catalystcenter.swim_workflow_manager module -- Module to manage SWIM (Software Image Management) operations in Cisco Catalyst Center

Note

This module is part of the cisco.catalystcenter collection (version 2.11.0).

To install it, use: ansible-galaxy collection install cisco.catalystcenter. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: cisco.catalystcenter.swim_workflow_manager.

New in cisco.catalystcenter 1.0.0

Synopsis

  • Manages operations for image importation, distribution, activation, and tagging images as golden.

  • Provides an API to fetch a software image from a remote file system via HTTP/FTP and upload it to Catalyst Center. Supported file extensions - bin, img, tar, smu, pie, aes, iso, ova, tar.gz, qcow2.

  • Provides an API to fetch a software image from a local file system and upload it to Catalyst Center. Supported file extensions - bin, img, tar, smu, pie, aes, iso, ova, tar.gz, qcow2.

  • Provides an API to fetch a software image from Cisco Connection Online (CCO) and upload it to Catalyst Center. Refer to https://software.cisco.com/download/home for suggested images in Cisco Catalyst Center. CCO functionality is available starting from Cisco Catalyst version 2.3.7.6.

  • Provides an API to tag or untag an image as golden for a given family of devices.

  • Provides an API to distribute a software image to a device. The software image must be imported into Catalyst Center before it can be distributed.

  • Provides an API to delete software images from Catalyst Center.

  • A golden tag is mandatory for a site, and the workflow cannot proceed without it

Requirements

The below requirements are needed on the host that executes this module.

  • catalystcentersdk >= 3.1.6.0.2

  • python >= 3.12

Parameters

Parameter

Comments

activation_batch_size

integer

Number of devices included in each bulk image activation API request.

The Cisco Catalyst Center bulk API accepts at most 500 devices per request, so this value must be between 1 and 500.

Lower this value to reduce the load per request on very large jobs.

Applicable only to Cisco Catalyst Center version 3.1.3.0 and later. Earlier versions use the legacy sequential workflow, so this value has no effect.

Each batch is processed as a separate API call with its own task ID, enabling independent monitoring and status tracking of each batch.

Default: :ansible-option-default:`50`

activation_poll_interval

integer

Interval in seconds between successive status polls of an image activation task.

The value must be at least 1 second.

Increase this value to lower the API request frequency and help avoid rate-limiting (HTTP 429) during activations that involve device reboots.

Default: :ansible-option-default:`30`

catalystcenter_api_task_timeout

aliases: 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: :ansible-option-default:`1200`

catalystcenter_debug

aliases: dnac_debug

boolean

Indicates whether debugging is enabled in the Cisco Catalyst Center SDK.

Choices:

catalystcenter_host

aliases: dnac_host

string / required

The hostname of the Cisco Catalyst Center.

catalystcenter_log

aliases: dnac_log

boolean

Flag to enable/disable playbook execution logging.

When true and catalystcenter_log_file_path is provided, - Create the log file at the execution location with the specified name.

When true and catalystcenter_log_file_path is not provided, - Create the log file at the execution location with the name 'catalystcenter.log'.

When false, - Logging is disabled.

If the log file doesn't exist, - It is created in append or write mode based on the "catalystcenter_log_append" flag.

If the log file exists, - It is overwritten or appended based on the "catalystcenter_log_append" flag.

Choices:

catalystcenter_log_append

aliases: dnac_log_append

boolean

Determines the mode of the file. Set to True for 'append' mode. Set to False for 'write' mode.

Choices:

catalystcenter_log_file_path

aliases: dnac_log_file_path

string

Governs logging. Logs are recorded if catalystcenter_log is True.

If path is not specified, - When 'catalystcenter_log_append' is True, 'catalystcenter.log' is generated in the current Ansible directory; logs are appended. - When 'catalystcenter_log_append' is False, 'catalystcenter.log' is generated; logs are overwritten.

If path is specified, - When 'catalystcenter_log_append' is True, the file opens in append mode. - When 'catalystcenter_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: :ansible-option-default:`"catalystcenter.log"`

catalystcenter_log_level

aliases: 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: :ansible-option-default:`"WARNING"`

catalystcenter_password

aliases: dnac_password

string

The password for authentication at the Cisco Catalyst Center.

catalystcenter_port

aliases: dnac_port, catalystcenter_api_port

string

Specifies the port number associated with the Cisco Catalyst Center.

Default: :ansible-option-default:`"443"`

catalystcenter_task_poll_interval

aliases: dnac_task_poll_interval

integer

Specifies the interval in seconds between successive calls to the API to retrieve task details.

Default: :ansible-option-default:`2`

catalystcenter_username

aliases: dnac_username, user

string

The username for authentication at the Cisco Catalyst Center.

Default: :ansible-option-default:`"admin"`

catalystcenter_verify

aliases: dnac_verify

boolean

Flag to enable or disable SSL certificate verification.

Choices:

catalystcenter_version

aliases: dnac_version

string

Specifies the version of the Cisco Catalyst Center that the SDK should use.

Default: :ansible-option-default:`"2.3.7.6"`

config

list / elements=dictionary / required

List of details of SWIM image being managed

image_activation_details

dictionary

Parameters for selecting target devices for SWIM image activation.

Target selection: - 'device_serial_number' identifies one device by serial number. - 'device_serial_numbers' identifies multiple devices by serial number. - 'device_ip_address' identifies one device by management IP address. - 'device_ip_addresses' identifies multiple devices by management IP address. - 'device_hostname' identifies one device by hostname. - 'device_hostnames' identifies multiple devices by hostname. - 'device_mac_address' identifies one device by MAC address. - 'device_mac_addresses' identifies multiple devices by MAC address. - 'site_name' selects devices assigned to the specified site. If no device identifier or site is provided, the module selects devices from the Global site. When 'site_name' is provided, 'device_role', 'device_family_name', and 'device_series_name' can further filter the devices within that site.

Bulk device targeting: When any plural device identifier is provided: - All supplied singular and plural identifiers are resolved independently. - The resolved devices are combined and duplicate device IDs are removed. - Site-based device selection is skipped. - Any identifier that cannot be resolved causes the operation to fail, and the error identifies

the problematic entry.

Recommended usage: Use one consistent identifier type and provide only one identifier per device when possible. This reduces device lookup calls and simplifies troubleshooting. Customers may combine IP addresses, serial numbers, hostnames, and MAC addresses when the same identifier type is not available for every device.

Device filtering: - Access Points and devices whose reachability status is not 'Reachable' are excluded when using

site-based or plural-identifier selection.

  • SAPRO devices are not eligible for image activation.

Input validation: - Blank, whitespace-only, or non-string entries in plural device identifier lists cause validation

to fail.

activate_lower_image_version

boolean

compatible_features

list / elements=dictionary

List of compatible feature key-value pairs.

Applicable for v3.1.3.0 and later.

key

string

Feature name. (e.g., "ISSU", "Rommon update")

value

string

Feature status (e.g., Enable or Disable)

convert_to_wlc

boolean

Flag to indicate device conversion to Wireless LAN Controller (WLC) during image activation.

When set to True: - Skips the device compliance check for image activation - Treats the device as eligible for image activation regardless of current state - Useful for scenarios where converting a device to WLC mode requires non-compliant image operations

When set to False (default): - Performs normal device compliance validation before activation - Only activates images on devices that are marked as NON_COMPLIANT - Follows standard SWIM workflow with full validation

Use Cases: - Converting access points or switches to operate as Wireless LAN Controllers - Scenarios where compliance checks should be bypassed for specific device transformations - Forced image activation for WLC conversion processes

Security Note: Use this parameter with caution as it bypasses standard compliance checks. Ensure device compatibility before enabling this option.

Choices:

device_family_name

string

Specify the name of the device family such as Switches and Hubs, etc.

device_hostname

string

Device hostname where the image needs to be activated

device_hostnames

list / elements=string

List of device hostnames for bulk image activation. Any value in

'device_hostname' is merged into this list and duplicate entries are removed.

device_ip_address

string

Device IP address where the image needs to be activated

device_ip_addresses

list / elements=string

List of device IP addresses for bulk image activation. When provided, it takes

precedence over site-based selection and reuses the bulk activation path. Any value in 'device_ip_address' is merged into this list and duplicate entries are removed.

device_mac_address

string

Device MAC address where the image needs to be activated

device_mac_addresses

list / elements=string

List of device MAC addresses for bulk image activation. Any value in

'device_mac_address' is merged into this list and duplicate entries are removed.

device_role

string

Defines the device role, with permissible values including ALL, UNKNOWN, ACCESS, BORDER ROUTER, DISTRIBUTION, and CORE.

device_serial_number

string

Device serial number where the image needs to be activated

device_serial_numbers

list / elements=string

List of device serial numbers for bulk image activation. Any value in

'device_serial_number' is merged into this list and duplicate entries are removed.

device_series_name

string

This parameter specifies the name of the device series. It is used to identify a specific series of devices, such as Cisco Catalyst 9300 Series Switches, within the Cisco Catalyst Center.

device_tag

string

Device tag for filtering the target device(s)

device_upgrade_mode

string

It specifies the mode of upgrade to be applied to the devices having the following values - 'install', 'bundle', and 'currentlyExists'. install - This mode instructs Cisco Catalyst Center to perform a clean installation of the new image on the target devices. When this mode is selected, the existing image on the device is completely replaced with the new image during the upgrade process. This ensures that the device runs only the new image version after the upgrade is completed. bundle - This mode instructs Cisco Catalyst Center bundles the new image with the existing image on the device before initiating the upgrade process. This mode allows for a more efficient upgrade process by preserving the existing image on the device while adding the new image as an additional bundle. After the upgrade, the device can run either the existing image or the new bundled image, depending on the configuration. currentlyExists - This mode instructs Cisco Catalyst Center to checks if the target devices already have the desired image version installed. If image already present on devices, no action is taken and upgrade process is skipped for those devices. This mode is useful for avoiding unnecessary upgrades on devices that already have the correct image version installed, thereby saving time.

distribute_if_needed

boolean

Enable the distribute_if_needed option when activating the SWIM image.

Choices:

image_activation_timeout

string

Timeout duration in seconds for image activation API operations.

Controls how long the system waits for image activation processes to complete before timing out, including device reboot and startup verification.

Operation phases covered by this timeout: - Image validation and preparation for activation - Device upgrade mode processing (install/bundle/currentlyExists) - Device reboot and startup sequence (if required) - Post-activation connectivity and status verification - Golden image validation (if applicable)

Default of 1800 seconds (30 minutes) accommodates: - Device boot time variations (switches: 5-15 min, routers: 10-20 min) - Image installation and verification processes - Network convergence and connectivity restoration - Multiple devices in concurrent activation scenarios

Recommended timeout values by device type: - Access switches: 1200-1800 seconds (20-30 minutes) - Distribution/Core switches: 1800-2700 seconds (30-45 minutes) - Routers and complex devices: 2700-3600 seconds (45-60 minutes)

Warning: Setting timeout too low may cause premature failure reporting for successful but slow activation processes.

Note: This timeout is independent of the global 'catalystcenter_api_task_timeout' parameter

type: int default: 1800

image_name

string

Specifies the name of the SWIM image to be activated.

schedule_validate

boolean

ScheduleValidate query parameter. ScheduleValidate, validates data before schedule (optional).

Choices:

site_name

string

Used to get device details associated to this site.

sub_package_images

list / elements=string

Specifies a list of SWIM sub-package image names.

image_distribution_details

dictionary

Parameters for selecting target devices for SWIM image distribution.

Target selection: - 'device_serial_number' identifies one device by serial number. - 'device_serial_numbers' identifies multiple devices by serial number. - 'device_ip_address' identifies one device by management IP address. - 'device_ip_addresses' identifies multiple devices by management IP address. - 'device_hostname' identifies one device by hostname. - 'device_hostnames' identifies multiple devices by hostname. - 'device_mac_address' identifies one device by MAC address. - 'device_mac_addresses' identifies multiple devices by MAC address. - 'site_name' selects devices assigned to the specified site. If no device identifier or site is provided, the module selects devices from the Global site. When 'site_name' is provided, 'device_role', 'device_family_name', and 'device_series_name' can further filter the devices within that site.

Bulk device targeting: When any plural device identifier is provided: - All supplied singular and plural identifiers are resolved independently. - The resolved devices are combined and duplicate device IDs are removed. - Site-based device selection is skipped. - Any identifier that cannot be resolved causes the operation to fail, and the error identifies

the problematic entry.

Recommended usage: Use one consistent identifier type and provide only one identifier per device when possible. This reduces device lookup calls and simplifies troubleshooting. Customers may combine IP addresses, serial numbers, hostnames, and MAC addresses when the same identifier type is not available for every device.

Device filtering: - Access Points and devices whose reachability status is not 'Reachable' are excluded when using

site-based or plural-identifier selection.

  • SAPRO devices are not eligible for image distribution.

Input validation: - Blank, whitespace-only, or non-string entries in plural device identifier lists cause validation

to fail.

convert_to_wlc

boolean

Flag to indicate device conversion to Wireless LAN Controller (WLC) during image distribution.

When set to True: - Skips the device compliance check for image distribution - Treats the device as eligible for image distribution regardless of current state - Useful for scenarios where converting a device to WLC mode requires non-compliant image operations

When set to False (default): - Performs normal device compliance validation before distribution - Only distributes images to devices that are marked as NON_COMPLIANT - Follows standard SWIM workflow with full validation

Use Cases: - Converting access points or switches to operate as Wireless LAN Controllers - Scenarios where compliance checks should be bypassed for specific device transformations - Forced image distribution for WLC conversion processes

Security Note: Use this parameter with caution as it bypasses standard compliance checks. Ensure device compatibility before enabling this option.

Choices:

device_family_name

string

Specify the name of the device family such as Switches and Hubs, etc.

device_hostname

string

Device hostname where the image needs to be distributed

device_hostnames

list / elements=string

List of device hostnames for bulk image distribution. Any value in

'device_hostname' is merged into this list and duplicate entries are removed.

device_ip_address

string

Device IP address where the image needs to be distributed

device_ip_addresses

list / elements=string

List of device IP addresses for bulk image distribution. When provided, it takes

precedence over site-based selection and reuses the bulk distribution path. Any value in 'device_ip_address' is merged into this list and duplicate entries are removed.

device_mac_address

string

Device MAC address where the image needs to be distributed

device_mac_addresses

list / elements=string

List of device MAC addresses for bulk image distribution. Any value in

'device_mac_address' is merged into this list and duplicate entries are removed.

device_role

string

Device Role and permissible Values are ALL, UNKNOWN, ACCESS, BORDER ROUTER, DISTRIBUTION and CORE. ALL - This role typically represents all devices within the network, regardless of their specific roles or functions. UNKNOWN - This role is assigned to devices whose roles or functions have not been identified or classified within Cisco Catalyst Center. This could happen if the platform is unable to determine the device's role based on available information. ACCESS - This role typically represents switches or access points that serve as access points for end-user devices to connect to the network. These devices are often located at the edge of the network and provide connectivity to end-user devices. BORDER ROUTER - These are devices that connect different network domains or segments together. They often serve as gateways between different networks, such as connecting an enterprise network to the internet or connecting multiple branch offices. DISTRIBUTION - This role represents function as distribution switches or routers in hierarchical network designs. They aggregate traffic from access switches and route it toward the core of the network or toward other distribution switches. CORE - This role typically represents high-capacity switches or routers that form the backbone of the network. They handle large volumes of traffic and provide connectivity between different parts of network, such as connecting distribution switches or providing interconnection between different network segments.

device_serial_number

string

Device serial number where the image needs to be distributed

device_serial_numbers

list / elements=string

List of device serial numbers for bulk image distribution. Any value in

'device_serial_number' is merged into this list and duplicate entries are removed.

device_series_name

string

This parameter specifies the name of the device series. It is used to identify a specific series of devices, such as Cisco Catalyst 9300 Series Switches, within the Cisco Catalyst Center.

device_tag

string

Device tag for filtering the target device(s)

image_distribution_timeout

string

Timeout duration in seconds for image distribution API operations.

Controls how long the system waits for image distribution tasks to complete, including image transfer to target devices, network propagation, and distribution validation.

Operation phases covered by this timeout: - Image preparation and validation on Catalyst Center - Network transfer to target devices - Installation verification on target devices - Distribution status confirmation

Default of 1800 seconds (30 minutes) accounts for: - Large image files (up to several GB) - Multiple target devices in site-based operations - Network latency and bandwidth constraints - Device processing and storage capabilities

Recommended timeout values: - Small networks (1-10 devices): 900-1800 seconds - Medium networks (10-50 devices): 1800-3600 seconds - Large networks (50+ devices): 3600-7200 seconds

Note: This timeout is independent of the global 'catalystcenter_api_task_timeout' parameter and specifically applies to distribution operations only.

default: 1800 type: int

image_name

string

Specifies the name of the SWIM image to be distributed.

site_name

string

Used to get device details associated to this site.

sub_package_images

list / elements=string

Specifies a list of SWIM sub-package image names.

image_name

list / elements=string

A list of image names to be deleted.

This parameter is mandatory and exclusively used when the state is 'deleted'.

Applicable for v3.1.3.0 and later.

import_image_details

dictionary

Details of image being imported

cco_image_details

dictionary

Parameters related to importing a software image from Cisco Connection Online (CCO) into Catalyst Center.

This API fetches the specified image from CCO and uploads it to Catalyst Center.

Supported from Cisco Catalyst Center version 2.3.7.6 onward.

Refer to the Cisco software download portal (https://software.cisco.com/download/home) for recommended images.

image_name

list / elements=string

Specifies the name of the software image to be imported from Cisco.com.

This parameter is mandatory to initiate the download from CCO.

Accepts either a single image name as a string or multiple image names as a list.

local_image_details

dictionary

Details of the local path of the image to be imported.

file_path

string / required

Provide the absolute file path needed to import an image from your local system (Eg "/path/to/your/file"). Accepted files formats are - .gz,.bin,.img,.tar,.smu,.pie,.aes,.iso,.ova,.tar_gz,.qcow2,.nfvispkg,.zip,.spa,.rpm.

is_third_party

boolean

Query parameter to determine if the image is from a third party (optional).

Choices:

third_party_application_type

string

Specify the ThirdPartyApplicationType query parameter to indicate the type of third-party application. Allowed values include WLC, LINUX, FIREWALL, WINDOWS, LOADBALANCER, THIRDPARTY, etc.(optional). WLC (Wireless LAN Controller) - It's a network device that manages and controls multiple wireless access points (APs) in a centralized manner. LINUX - It's an open-source operating system that provides a complete set of software packages and utilities. FIREWALL - It's a network security device that monitors and controls incoming and outgoing network traffic based on predetermined security rules.It acts as a barrier between a trusted internal network and untrusted external networks (such as the internet), preventing unauthorized access. WINDOWS - It's an operating system known for its graphical user interface (GUI) support, extensive compatibility with hardware and software, and widespread use across various applications. LOADBALANCER - It's a network device or software application that distributes incoming network traffic across multiple servers or resources. THIRDPARTY - It refers to third-party images or applications that are not part of the core system. NAM (Network Access Manager) - It's a network management tool or software application that provides centralized control and monitoring of network access policies, user authentication, and device compliance. WAN Optimization - It refers to techniques and technologies used to improve the performance and efficiency of WANs. It includes various optimization techniques such as data compression, caching, protocol optimization, and traffic prioritization to reduce latency, increase throughput, and improve user experience over WAN connections. Unknown - It refers to an unspecified or unrecognized application type. Router - It's a network device that forwards data packets between computer networks. They are essential for connecting multiple networks together and directing traffic between them.

third_party_image_family

string

Provide the ThirdPartyImageFamily query parameter to identify the family of the third-party image. Image Family name like PALOALTO, RIVERBED, FORTINET, CHECKPOINT, SILVERPEAK etc. (optional).

third_party_vendor

string

Include the ThirdPartyVendor query parameter to specify the vendor of the third party.

type

string

Specifies the source of the image import. Supported values are 'local' for local file import, 'remote' for remote URL import, or 'CCO' for import from Cisco Connection Online.

url_details

dictionary

URL details for SWIM import

payload

list / elements=dictionary

Swim Import Via Url's payload.

application_type

string

An optional parameter that specifies the type of application. Allowed values include WLC, LINUX, FIREWALL, WINDOWS, LOADBALANCER, THIRDPARTY, etc. This is only applicable for third-party image types(optional). WLC (Wireless LAN Controller) - It's network device that manages and controls multiple wireless access points (APs) in a centralized manner. LINUX - It's an open source which provide complete operating system with a wide range of software packages and utilities. FIREWALL - It's a network security device that monitors and controls incoming and outgoing network traffic based on predetermined security rules.It acts as a barrier between a trusted internal network and untrusted external networks (such as the internet), preventing unauthorized access. WINDOWS - It's an OS which provides GUI support for various applications, and extensive compatibility with hardware and software. LOADBALANCER - It's a network device or software application that distributes incoming network traffic across multiple servers or resources. THIRDPARTY - It refers to third-party images or applications that are not part of the core system. NAM (Network Access Manager) - It's a network management tool or software application that provides centralized control and monitoring of network access policies, user authentication, and device compliance. WAN Optimization - It refers to techniques and technologies used to improve the performance and efficiency of WANs. It includes various optimization techniques such as data compression, caching, protocol optimization, and traffic prioritization to reduce latency, increase throughput, and improve user experience over WAN connections. Unknown - It refers to an unspecified or unrecognized application type. Router - It's a network device that forwards data packets between computer networks. They are essential for connecting multiple networks together and directing traffic between them.

image_family

string

Represents the name of the image family and is applicable only when uploading third-party images. Image Family name like PALOALTO, RIVERBED, FORTINET, CHECKPOINT, SILVERPEAK etc. (optional).

is_third_party

boolean

Flag indicates whether the image is uploaded from a third party (optional).

Choices:

source_url

list / elements=string / required

A mandatory parameter for importing a SWIM image via a remote URL. This parameter is required when using a URL to import an image..(For example, http://{host}/swim/cat9k_isoxe.16.12.10s.SPA.bin, ftp://user:password@{host}/swim/cat9k_isoxe.16.12.10s.SPA.iso) source url can be either str or list

vendor

string

The name of the vendor, that applies only to third-party image types when importing via URL (optional).

schedule_at

string

ScheduleAt query parameter. Epoch Time (The number of milli-seconds since January 1 1970 UTC) at which the distribution should be scheduled (optional).

schedule_desc

string

ScheduleDesc query parameter. Custom Description (optional).

schedule_origin

string

ScheduleOrigin query parameter. Originator of this call (optional).

sync_cco

boolean

Set to True to synchronize the image with Cisco Connection Online (CCO).

Applicable for v3.1.3.0 and later.

Choices:

tagging_details

dictionary

Details for tagging or untagging an image as golden

device_image_family_name

string

Device Image family name(Eg Cisco Catalyst 9300 Switch)

device_role

string

Specifies the device role(s) for tagging or untagging the image as golden.

Permissible values: - 'ALL': Applies the golden tag to all devices, regardless of role. - 'UNKNOWN': Tags devices without a specified classification. - 'ACCESS': Tags devices that connect end-user devices (e.g., access switches). - 'BORDER ROUTER': Tags devices linking different network segments or domains. - 'DISTRIBUTION': Tags devices aggregating traffic toward the core. - 'CORE': Tags backbone devices handling high-volume network traffic. Behavior: - If 'device_role' is a single string (e.g., `"ACCESS"`), only that role is tagged as golden. - If 'device_role' contains multiple roles (e.g., `"ACCESS,CORE"`), all specified roles are tagged as golden. - If omitted, the module defaults to 'ALL'. To replace an existing golden tag for a specific role: - **Unassign** the tag from the current role (e.g., `ACCESS`). - **Assign** the tag to the new role (e.g., `CORE`). Idempotency (per-role check, Catalyst Center >= 3.1.3.0): - Tagging is evaluated per role. If the image is already golden for 'ACCESS' and you

request tagging for 'CORE', the module tags 'CORE' (changed=True). Previously this was silently skipped.

  • The module skips (changed=False) only when all requested roles are already tagged.

  • 'ALL' is treated as a superset: an image tagged with 'ALL' skips any subsequent request for one or more specific roles, since those roles are already covered.

  • For untagging, the module skips (changed=False) only when all requested roles are already untagged.

Examples: - device_role: "ACCESS" tags only the `ACCESS` role as golden. - device_role: "ACCESS,CORE" tags both `ACCESS` and `CORE` roles as golden.

image_name

string

SWIM image name which will be tagged or untagged as golden.

site_name

string

Site name for which SWIM image will be tagged/untagged as golden. If not provided, SWIM image will be mapped to global site.

supervisor_product_name_ordinal

integer

Supervisor Product Name Ordinal value.

tagging

boolean

Boolean value to tag/untag the SWIM image as golden. If True, the given image is tagged as golden. If False, the given image is un-tagged as golden.

Choices:

config_verify

boolean

Set to True to verify the Cisco Catalyst Center config after applying the playbook config.

Choices:

distribution_batch_size

integer

Number of devices included in each bulk image distribution API request.

The Cisco Catalyst Center bulk API accepts at most 500 devices per request, so this value must be between 1 and 500.

Lower this value to reduce the load per request on very large jobs.

Applicable only to Cisco Catalyst Center version 3.1.3.0 and later. Earlier versions use the legacy sequential workflow, so this value has no effect.

Each batch is processed as a separate API call with its own task ID, enabling independent monitoring and status tracking of each batch.

Default: :ansible-option-default:`50`

distribution_poll_interval

integer

Interval in seconds between successive status polls of an image distribution task.

The value must be at least 1 second.

Also applies to the distribution phase that runs implicitly during an activation when distribute_if_needed is set.

Increase this value to lower the API request frequency and help avoid rate-limiting (HTTP 429) during large or long-running distributions.

Default: :ansible-option-default:`30`

state

string

The state of Catalyst Center after module completion.

Choices:

validate_response_schema

boolean

Flag for Cisco Catalyst Center SDK to enable the validation of request bodies against a JSON schema.

Choices:

Notes

Note

  • SDK Method used are software_image_management_swim.SoftwareImageManagementSwim.import_software_image_via_url, software_image_management_swim.SoftwareImageManagementSwim.tag_as_golden_image, software_image_management_swim.SoftwareImageManagementSwim.remove_golden_tag_for_image, software_image_management_swim.SoftwareImageManagementSwim.get_golden_tag_status_of_an_image, software_image_management_swim.SoftwareImageManagementSwim.tagging_golden_image, software_image_management_swim.SoftwareImageManagementSwim.untagging_golden_image, software_image_management_swim.SoftwareImageManagementSwim.returns_network_device_product_names_for_a_site, software_image_management_swim.SoftwareImageManagementSwim.trigger_software_image_distribution, software_image_management_swim.SoftwareImageManagementSwim.trigger_software_image_activation, software_image_management_swim.SoftwareImageManagementSwim.delete_image_v1,

  • Paths used are post /dna/intent/api/v1/image/importation/source/url, post /dna/intent/api/v1/image/importation/golden, get /dna/intent/api/v1/image/importation/golden/site/{siteId}/family/{deviceFamilyIdentifier}/role/{deviceRole}/image/{imageId}, post /dna/intent/api/v1/images/{id}/sites/{siteId}/tagGolden, post /dna/intent/api/v1/images/{id}/sites/{siteId}/untagGolden, get /dna/intent/api/v1/siteWiseProductNames, post /dna/intent/api/v1/image/distribution, post /dna/intent/api/v1/image/activation/device, delete /dna/intent/api/v1/images/{id},

  • Does not support 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

  • Requires Python >= 3.10, matching the controller Python versions supported by the collection's minimum ansible-core version (see the collection README for the current ansible-core / Python compatibility range)

Examples

---
- name: Import an image from a URL, tag it as golden
    and load it on device
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - import_image_details:
          type: remote
          url_details:
            payload:
              - source_url:
                  - "http://10.10.10.10/stda/cat9k_iosxe.17.12.01.SPA.bin"
                is_third_party: false
        tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: ACCESS
          device_image_family_name: Cisco Catalyst 9300
            Switch
          site_name: Global/USA/San Francisco/BGL_18
          tagging: true
        image_distribution_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_serial_number: FJC2327U0S2
        image_activation_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          schedule_validate: false
          activate_lower_image_version: false
          distribute_if_needed: true
          device_serial_number: FJC2327U0S2
- name: Import an image from local, tag it as golden.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - import_image_details:
          type: local
          local_image_details:
            file_path: /Users/Downloads/cat9k_iosxe.17.12.01.SPA.bin
            is_third_party: false
        tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: ACCESS
          device_image_family_name: Cisco Catalyst 9300
            Switch
          site_name: Global/USA/San Francisco/BGL_18
          tagging: true
- name: Import bulk images from URL
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - import_image_details:
          type: remote
          url_details:
            payload:
              - source_url:
                  - "http://10.10.10.10/stda/cat9k_iosxe.17.12.01.SPA.bin"
                  - "http://10.10.10.10/stda/cat9k_iosxe.17.12.02.SPA.bin"
            is_third_party: false
- name: Import image from URL using str
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - import_image_details:
          type: remote
          url_details:
            payload:
              - source_url: "http://10.10.10.10/stda/cat9k_iosxe.17.12.01.SPA.bin"
            is_third_party: false
- name: Import images from CCO (cisco.com)
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - import_image_details:
          type: CCO
          cco_image_details:
            image_name: cat9k_iosxe.17.06.06a.SPA.bin
- name: Import list of images from CCO (cisco.com)
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - import_image_details:
          type: CCO
          cco_image_details:
            image_name:
              - cat9k_iosxe.17.16.01.SPA.bin
              - C9800-SW-iosxe-wlc.17.16.01.SPA.bin
              - C9800-80-universalk9_wlc.17.15.02b.SPA.bin
- name: Tag the given image as golden and load it on
    device
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: ACCESS
          device_image_family_name: Cisco Catalyst 9300
            Switch
          site_name: Global/USA/San Francisco/BGL_18
          tagging: true
# Remove the golden tag from the specified image for the given device role and assign it to another device role.
- name: Update golden tag assignment for image based
    on device role
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: CORE
          device_image_family_name: Cisco Catalyst 9300
            Switch
          tagging: false
      - tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: ACCESS
          device_image_family_name: Cisco Catalyst 9300
            Switch
          tagging: true
- name: Tag the specified image as golden for multiple
    device roles and load it into the device
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: ACCESS,CORE
          device_image_family_name: Cisco Catalyst 9300
            Switch
          site_name: Global/USA/San Francisco/BGL_18
          tagging: true
- name: Un-tagged the given image as golden and load
    it on device
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - tagging_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_role: ACCESS
          device_image_family_name: Cisco Catalyst 9300
            Switch
          site_name: Global/USA/San Francisco/BGL_18
          tagging: false
- name: Distribute the given image on devices associated
    to that site with specified role.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_distribution_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          site_name: Global/USA/San Francisco/BGL_18
          device_role: ALL
          device_family_name: Switches and Hubs
          device_series_name: Cisco Catalyst 9300 Series
            Switches

- name: Distribute an image to specific devices using IP addresses
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    distribution_batch_size: 20
    config:
      - image_distribution_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_ip_addresses:
            - 10.1.1.1
            - 10.1.1.2

- name: Distribute the given image on devices associated with device tag
    to that site with specified role.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_distribution_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          site_name: Global/a_swim/swim_test1
          device_role: ALL
          device_family_name: Switches and Hubs
          device_tag: AUTO_INV_EVENT_SYNC_DISABLED

- name: Activate the given image on devices associated with device tag
    to that site with specified role.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_activation_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          site_name: Global/USA/San Francisco/BGL_18
          device_role: ALL
          device_family_name: Switches and Hubs
          device_series_name: Cisco Catalyst 9300 Series Switches
          device_tag: AUTO_INV_EVENT_SYNC_DISABLED
          schedule_validate: false
          activate_lower_image_version: true
          distribute_if_needed: true

- name: Activate an image on specific devices using serial numbers
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    activation_batch_size: 20
    config:
      - image_activation_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          device_serial_numbers:
            - FJC2327U0S2
            - FJC2327U0S3
          schedule_validate: false
          activate_lower_image_version: false
          distribute_if_needed: true

- name: Activate the given image on devices associated
    to that site with specified role.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_activation_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          site_name: Global/USA/San Francisco/BGL_18
          device_role: ALL
          device_family_name: Switches and Hubs
          device_series_name: Cisco Catalyst 9300 Series Switches
          schedule_validate: false
          activate_lower_image_version: true
          distribute_if_needed: true

- name: Activate the golden image on devices associated
    to that site with specified role.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_activation_details:
          site_name: Global/USA/San Francisco/BGL_18
          device_role: ALL
          device_family_name: Switches and Hubs
          device_series_name: Cisco Catalyst 9300 Series Switches
          schedule_validate: false
          activate_lower_image_version: true
          distribute_if_needed: true

- name: distribute the golden image on devices associated
    to that site with specified role with custom api timeout.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_activation_details:
          site_name: Global/USA/San Francisco/BGL_18
          image_activation_timeout: 2500
          device_role: ALL
          device_family_name: Switches and Hubs
          device_series_name: Cisco Catalyst 9300 Series Switches
          schedule_validate: false
          activate_lower_image_version: true
          distribute_if_needed: true

- name: Activate the given image on devices associated
    to that site for v3.1.3.0.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_activation_details:
          image_name: cat9k_iosxe.17.12.01.SPA.bin
          site_name: Global/USA/San Francisco/BGL_18
          compatible_features:
            - key: "ISSU"
              value: Enable
            - key: "Rommon update"
              value: Disable

- name: Sync cco images to Cisco Catalyst Center for v3.1.3.0.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - sync_cco: true

- name: Distribute WLC image with convert_to_wlc flag to skip compliance check
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_distribution_details:
          sub_package_images:
            - C9800-SW-iosxe-wlc.17.12.01.SPA.bin
          convert_to_wlc: true
          site_name: Global/a_swim

- name: Activate WLC image with convert_to_wlc flag to skip compliance check
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log_level: "{{catalystcenter_log_level}}"
    catalystcenter_log: true
    config:
      - image_activation_details:
          sub_package_images:
            - C9800-SW-iosxe-wlc.17.12.01.SPA.bin
          convert_to_wlc: true
          site_name: Global/a_swim
          activate_lower_image_version: true
          distribute_if_needed: true
          schedule_validate: false

- name: Delete image from Cisco Catalyst Center for v3.1.3.0.
  cisco.catalystcenter.swim_workflow_manager:
    catalystcenter_host: "{{catalystcenter_host}}"
    catalystcenter_username: "{{catalystcenter_username}}"
    catalystcenter_password: "{{catalystcenter_password}}"
    catalystcenter_verify: "{{catalystcenter_verify}}"
    catalystcenter_port: "{{catalystcenter_port}}"
    catalystcenter_version: "{{catalystcenter_version}}"
    catalystcenter_debug: "{{catalystcenter_debug}}"
    catalystcenter_log: true
    catalystcenter_log_level: DEBUG
    config_verify: true
    catalystcenter_api_task_timeout: 1000
    catalystcenter_task_poll_interval: 1
    state: deleted
    config:
      - image_name: [C9800-SW-iosxe-wlc.17.07.01.SPA.bin]

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

response

dictionary

Authors

  • Madhan Sankaranarayanan (@madhansansel) Rishita Chowdhary (@rishitachowdhary) Abhishek Maheshwari (@abmahesh) Syed Khadeer Ahmed (@syed-khadeerahmed) Ajith Andrew J (@ajithandrewj)