{"id":43657179,"url":"https://github.com/cisco-en-programmability/dnacenter-ansible","last_synced_at":"2026-04-24T00:01:06.711Z","repository":{"id":36954102,"uuid":"315402059","full_name":"cisco-en-programmability/dnacenter-ansible","owner":"cisco-en-programmability","description":"Cisco DNA Center Ansible modules","archived":false,"fork":false,"pushed_at":"2026-04-22T18:23:45.000Z","size":254185,"stargazers_count":38,"open_issues_count":8,"forks_count":62,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-22T18:27:49.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cisco-en-programmability.github.io/dnacenter-ansible/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cisco-en-programmability.png","metadata":{"files":{"readme":"README.md","changelog":"changelogs/changelog.yaml","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-23T18:15:24.000Z","updated_at":"2026-04-22T18:24:12.000Z","dependencies_parsed_at":"2023-12-20T20:24:56.493Z","dependency_job_id":"6124093a-6b94-4ac1-9059-b1b1cfb0ea57","html_url":"https://github.com/cisco-en-programmability/dnacenter-ansible","commit_stats":null,"previous_names":[],"tags_count":124,"template":false,"template_full_name":null,"purl":"pkg:github/cisco-en-programmability/dnacenter-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cisco-en-programmability","download_url":"https://codeload.github.com/cisco-en-programmability/dnacenter-ansible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32203362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T20:19:26.138Z","status":"ssl_error","status_checked_at":"2026-04-23T20:19:23.520Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-04T21:02:40.814Z","updated_at":"2026-04-24T00:01:06.541Z","avatar_url":"https://github.com/cisco-en-programmability.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Collection: cisco.dnac\n\n\u003e **DEPRECATED:** This collection is deprecated and will be removed in a future release.\n\u003e Please migrate to [cisco.catalystcenter](https://galaxy.ansible.com/cisco/catalystcenter),\n\u003e which provides the same functionality under the updated Cisco Catalyst Center branding.\n\n## Overview\n\nThe cisco.dnac 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.\n\nThis collection is available on both [Ansible Galaxy](https://galaxy.ansible.com/cisco/dnac) and [Red Hat Automation Hub](https://console.redhat.com/ansible/automation-hub/repo/published/cisco/dnac/).\n\n## Compatibility Matrix\n\nThe following table shows the supported versions.\n\n| Cisco DNA Center version | Ansible cisco.dnac version | Python dnacentersdk version |\n|--------------------------|------------------------------|-------------------------------|\n|2.3.5.3|6.13.3|2.6.11|\n|2.3.7.6|6.25.0|2.8.3|\n|2.3.7.7|6.30.2|2.8.6|\n|2.3.7.9|6.33.2|2.8.6|\n|3.1.3.0|6.45.0|2.10.6|\n|3.1.6.0|6.47.x|2.11.x|\n\nIf your Ansible collection is older please consider updating it first.\n\nNotes:\n\n1. The \"Python 'dnacentersdk' version\" column lists the minimum recommended SDK used during testing; later SDK releases are usually compatible.\n2. The \"Cisco DNA Center version\" column has the value of the `version` you should use for the Ansible collection.\n\n## Requirements\n\n- Python \u003e= 3.9\n- [dnacentersdk](https://github.com/cisco-en-programmability/dnacentersdk) (see Compatibility Matrix for tested versions)\n- ansible-core \u003e= 2.15\n\n\u003e **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.\n\n## Installation\n\nInstall the collection from Ansible Galaxy:\n\n```bash\nansible-galaxy collection install cisco.dnac\n```\n\nTo upgrade to the latest version:\n\n```bash\nansible-galaxy collection install cisco.dnac --upgrade\n```\n\nInstall the Python SDK:\n\n```bash\npip install dnacentersdk\n```\n\n## Using this Collection\n\nConnection details can be provided via environment variables or Ansible variable files. See the [examples directory](https://github.com/cisco-en-programmability/dnacenter-ansible/tree/main/playbooks) for sample playbooks and variable files.\n\n### Using environment variables\n\nFirst, export the environment variables where you specify your CATALYST Center credentials as ansible variables:\n\n```bash\nexport DNAC_HOST=\u003cA.B.C.D\u003e\nexport DNAC_PORT=443 # optional, defaults to 443\nexport DNAC_USERNAME=\u003cusername\u003e\nexport DNAC_PASSWORD=\u003cpassword\u003e\nexport DNAC_VERSION=3.1.6.0 # optional, see the Compatibility Matrix\nexport DNAC_VERIFY=False # optional, defaults to True\nexport DNAC_DEBUG=False # optional, defaults to False\n```\n\nCreate a `hosts` ([example](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/playbooks/hosts)) file that uses `[dnac_servers]` with your Cisco CATALYST Center Settings:\n\n```ini\n[dnac_servers]\ndnac_server\n```\n\nThen, create a playbook `myplaybook.yml` ([example](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/playbooks/tag.yml)) specifying the full namespace path to the module, plugin and/or role. The module will read connection details from the environment variables above:\n\n```yaml\n- hosts: dnac_servers\n  gather_facts: false\n  tasks:\n  - name: Create tag with name \"MyNewTag\"\n    cisco.dnac.tag:\n      state: present\n      description: My Tag\n      name: MyNewTag\n    register: result\n```\n\nExecute the playbook:\n\n```bash\nansible-playbook -i hosts myplaybook.yml\n```\n\n### Using vars_files\n\nFirst, define a `credentials.yml` ([example](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/playbooks/vars/credentials.template)) file where you specify your CATALYST Center credentials as Ansible variables:\n\n```yaml\n---\n# DNA Center connection variables\ndnac_host: \u003cA.B.C.D\u003e\ndnac_port: 443\ndnac_username: \u003cusername\u003e\ndnac_password: \u003cpassword\u003e\ndnac_version: 3.1.6.0\ndnac_verify: False\ndnac_debug: False\n```\n\nCreate a `hosts` ([example](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/playbooks/hosts)) file that uses `[dnac_servers]` with your Cisco CATALYST Center Settings:\n\n```ini\n[dnac_servers]\ndnac_server\n```\n\nThen, create a playbook `myplaybook.yml` ([example](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/playbooks/tag.yml)) referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role:\n\n```yaml\n- hosts: dnac_servers\n  vars_files:\n    - playbooks/credentials.yml\n  gather_facts: false\n  tasks:\n    - name: Create tag using vars_file\n      cisco.dnac.tag:\n        dnac_host: \"{{ dnac_host }}\"\n        dnac_username: \"{{ dnac_username }}\"\n        dnac_password: \"{{ dnac_password }}\"\n        dnac_verify: \"{{ dnac_verify }}\"\n        state: present\n        description: My Tag\n        name: MyNewTag\n      register: result\n```\n\nExecute the playbook as usual:\n\n```bash\nansible-playbook -i hosts myplaybook.yml\n```\n\nIn the `playbooks` [directory](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/playbooks) you can find more examples and use cases.\n\n## Use Cases\n\nThis collection supports automation scenarios such as:\n\n- Automating device and site configuration through Cisco CATALYST Center APIs.\n- Managing tags, sites, templates, and policies programmatically.\n- Querying inventory and operational data for reporting and validation workflows.\n- Integrating Cisco CATALYST Center operations into CI/CD or ITSM workflows.\n- Standardizing repeatable infrastructure changes using playbooks.\n\n## Testing\n\nThis collection is validated against the following environments:\n\n- Cisco DNA Center: 2.3.5.3, 2.3.7.6, 2.3.7.9, 3.1.3.0, 3.1.6.0\n- ansible-core: \u003e= 2.15\n- Python: \u003e= 3.9\n\nKnown limitations and compatibility notes are documented in the [changelog](https://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/changelogs/changelog.yaml). For platform-specific issues, consult the official documentation or open a support case as appropriate.\n\n## Contributing\n\nContributions are welcome. Please open issues or pull requests via the [Cisco DNA Center Ansible collection repository](https://github.com/cisco-en-programmability/dnacenter-ansible/issues). All contributors must adhere to the project's Code of Conduct.\n\n\n## Code of Conduct\n\nThis collection follows the Ansible project's\n[Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html).\nPlease read and familiarize yourself with this document.\n\n\n## Support\n\nThis collection is available on both Ansible Galaxy and Red Hat Automation Hub.\n\nFor certified content obtained from Red Hat Automation Hub, support is provided through Red Hat Ansible Automation Platform according to your subscription agreement.\n\nFor content obtained from Ansible Galaxy, community support may be available via:\n- https://forum.ansible.com/\n- https://github.com/cisco-en-programmability/dnacenter-ansible/issues\n\nPlease consult your platform documentation for support eligibility and procedures.\n\n---\n\n\n## Release Notes and Roadmap\n\nRelease notes are maintained in the public changelog:\nhttps://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/changelogs/changelog.yaml\n\nThis collection follows [Semantic Versioning](https://semver.org/). For roadmap information, refer to the repository or contact Cisco for enterprise roadmap details.\n\n---\n\n\n## Related Information\n\n- https://github.com/cisco-en-programmability/dnacentersdk\n- https://docs.ansible.com/ansible/latest/user_guide/collections_using.html\n- https://github.com/cisco-en-programmability/dnacenter-ansible\n\n---\n\n\n## License\n\nThis collection is licensed under the Cisco Sample Code License.\n\nThe full license text is available at:\nhttps://github.com/cisco-en-programmability/dnacenter-ansible/blob/main/LICENSE\n\nThe license is included in the distributed collection artifact.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisco-en-programmability%2Fdnacenter-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcisco-en-programmability%2Fdnacenter-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisco-en-programmability%2Fdnacenter-ansible/lists"}