The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

1106Modules1126Plugins1Dependency
Ansible Modules for Cisco CATALYST Center
The cisco.catalystcenter Ansible Collection enables enterprise automation and management of Cisco CATALYST Center environments. It provides modules that interact with Cisco CATALYST Center APIs to automate provisioning, configuration, and operational workflows.
This collection is available on both Ansible Galaxy and Red Hat Automation Hub.
The following table shows the supported versions.
| Cisco CATALYST Center version | Ansible "cisco.catalystcenter" version | Python "catalystcentersdk" version |
|---|---|---|
| 2.3.7.6 | 1.0.0 | 2.3.7.6.2 |
| 2.3.7.9 | 2.1.4 | 2.3.7.9.5 |
| 3.1.3.0 | 2.2.2 | 3.1.3.0.1 |
| 3.1.6.0 | 2.3.x | 3.1.3.6.x |
If your Ansible collection is older please consider updating it first.
Notes:
version you should use for the Ansible collection.Note: ansible-core is provided through Red Hat Ansible Automation Platform Execution Environments or can be installed via standard enterprise channels. Manual installation is not required for certified environments.
Install the collection from Ansible Galaxy or Automation Hub:
ansible-galaxy collection install cisco.catalystcenter
To upgrade to the latest version:
ansible-galaxy collection install cisco.catalystcenter --upgrade
Install the Python SDK:
pip install catalystcentersdk
Connection details can be provided via environment variables or Ansible variable files. See the examples directory for sample playbooks and variable files.
First, export the environment variables where you specify your CATALYST Center credentials as ansible variables:
export CATALYSTCENTER_HOST=<A.B.C.D>
export CATALYSTCENTER_PORT=443 # optional, defaults to 443
export CATALYSTCENTER_USERNAME=<username>
export CATALYSTCENTER_PASSWORD=<password>
export CATALYSTCENTER_VERSION=3.1.3.0 # optional, see the Compatibility matrix
export CATALYSTCENTER_VERIFY=False # optional, defaults to True
export CATALYSTCENTER_DEBUG=False # optional, defaults to False
Create a hosts (example) file that uses [catalystcenter_servers] with your Cisco CATALYST Center Settings:
[catalystcenter_servers]
catalystcenter_server
Then, create a playbook myplaybook.yml (example) specifying the full namespace path to the module, plugin and/or role. The module will read connection details from the environment variables above:
- hosts: catalystcenter_servers
gather_facts: false
tasks:
- name: Create tag with name "MyNewTag"
cisco.catalystcenter.tag:
state: present
description: My Tag
name: MyNewTag
register: result
Execute the playbook:
ansible-playbook -i hosts myplaybook.yml
First, define a credentials.yml (example) file where you specify your CATALYST Center credentials as Ansible variables:
---
catalystcenter_host: <A.B.C.D>
catalystcenter_port: 443 # optional, defaults to 443
catalystcenter_username: <username>
catalystcenter_password: <password>
catalystcenter_version: 3.1.6.0 # optional, see the Compatibility matrix
catalystcenter_verify: False # optional, defaults to True
catalystcenter_debug: False # optional, defaults to False
Create a hosts (example) file that uses [catalystcenter_servers] with your Cisco CATALYST Center Settings:
[catalystcenter_servers]
catalystcenter_server
Then, create a playbook myplaybook.yml (example) referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role:
- hosts: catalystcenter_servers
vars_files:
- vars/credentials.yml
gather_facts: false
tasks:
- name: Create tag with name "MyNewTag"
cisco.catalystcenter.tag:
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 }}"
state: present
description: My Tag
name: MyNewTag
register: result
Execute the playbook:
ansible-playbook -i hosts myplaybook.yml
In the playbooks directory you can find more examples and use cases.
This collection supports automation scenarios such as:
This collection is validated against the following environments:
Known limitations and compatibility notes are documented in the changelog. For platform-specific issues, consult the official documentation or open a support case as appropriate.
Contributions are welcome. Please open issues or pull requests via the Cisco CATALYST Center Ansible collection repository. All contributors must adhere to the project's Code of Conduct.
This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.
This collection is available on both Ansible Galaxy and Red Hat Automation Hub.
For certified content obtained from Red Hat Automation Hub, support is provided through Red Hat Ansible Automation Platform according to your subscription agreement.
For content obtained from Ansible Galaxy, community support may be available via: - https://forum.ansible.com/ - https://github.com/cisco-en-programmability/catalystcenter-ansible/issues
Please consult your platform documentation for support eligibility and procedures.
Release notes are maintained in the public changelog: https://github.com/cisco-en-programmability/catalystcenter-ansible/blob/main/changelogs/changelog.yaml
This collection follows Semantic Versioning. For roadmap information, refer to the repository or contact Cisco for enterprise roadmap details.
This collection is licensed under the Cisco Sample Code License.
The full license text is available at: https://github.com/cisco-en-programmability/catalystcenter-ansible/blob/main/LICENSE
The license is included in the distributed collection artifact.
| Product |
|---|
| 2.4 |
| 2.5 |
| 2.6 |
This collection requires the following collections for use:
| Name | Summary |
|---|