{"id":16139433,"url":"https://github.com/networkop/cvp_ansible_modules","last_synced_at":"2026-03-18T18:03:24.011Z","repository":{"id":83590159,"uuid":"206336956","full_name":"networkop/CVP_Ansible_Modules","owner":"networkop","description":"Pre release work in progress - Ansible modules for CVP","archived":false,"fork":false,"pushed_at":"2019-09-04T14:23:28.000Z","size":234,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:51:58.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networkop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-04T14:19:56.000Z","updated_at":"2023-06-03T16:38:08.000Z","dependencies_parsed_at":"2023-07-07T21:45:49.965Z","dependency_job_id":null,"html_url":"https://github.com/networkop/CVP_Ansible_Modules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/networkop/CVP_Ansible_Modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2FCVP_Ansible_Modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2FCVP_Ansible_Modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2FCVP_Ansible_Modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2FCVP_Ansible_Modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networkop","download_url":"https://codeload.github.com/networkop/CVP_Ansible_Modules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2FCVP_Ansible_Modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"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":"2024-10-09T23:49:03.461Z","updated_at":"2026-01-21T16:02:27.466Z","avatar_url":"https://github.com/networkop.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Arista-CVP%20Automation-blue) ![GitHub](https://img.shields.io/github/license/Hugh-Adams/CVP_Ansible_Modules)  ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/Hugh-Adams/CVP_Ansible_Modules)  ![GitHub last commit](https://img.shields.io/github/last-commit/Hugh-Adams/CVP_Ansible_Modules)  ![Gitlab pipeline status](https://img.shields.io/gitlab/pipeline/arista-projects/CVP_Ansible_Modules)\n# CVP_Ansible_Modules\nPre Release Work in progress Anisble modules for CVP\n\n\n\u003c!-- @import \"[TOC]\" {cmd=\"toc\" depthFrom=1 depthTo=6 orderedList=false} --\u003e\n\n\u003c!-- code_chunk_output --\u003e\n\n- [CVP_Ansible_Modules](#cvp_ansible_modules)\n  - [Modules overview](#modules-overview)\n  - [Installation](#installation)\n  - [Example playbook](#example-playbook)\n- [Resources](#resources)\n- [License](#license)\n- [Ask question or report issue](#ask-question-or-report-issue)\n- [Contribute](#contribute)\n\n\u003c!-- /code_chunk_output --\u003e\n\n\n## Modules overview\n\n**cv_configlet**\n\n - `add`, `delete`, and `show` configlets.\n\n  Configlets can be created, deleted then added to containers or devices. - also in cv_devices as required to move devices between containers\n  Any Tasks that are generated as a result will be returned.\n  Need to add the option to check (CVP verify) the configuration contained in the Configlet\n\n\u003e A complete playbook to create / show / delete configlet is available under [tests folder](tests/playbook.configlet.demo.yaml) \n\n**cv_container**\n - `add`, `delete`, and `show` containers\n\nContainers can be created or deleted. \n\n\u003e A complete playbook to create / show / delete container is available under [tests folder](tests/playbook.container.demo.yaml) \n\n**cv_device**\n - `add`, `delete`, and `show` devices\n\n  Devices can be deployed from the undefined container to a provisioned container or moved from one container to another using the add functionality and specifying the target container. Configlets can be added to devices using add and specifying the current parent container.\n  Devices can be Removed from CVP using the delete option and specifying \"CVP\" as the container, equivalent to the REMOVE GUI option.\n  Devices can be reset and moved to the undefined container using the delete option and specifying \"RESET\" as the container.\n  Configlets can be removed from a device using the delete option and specifying the configs to be removed and the current parent container as the container.\n  show option provide device data and current config.\n\n\u003e A complete playbook to move / show / delete devices is available under [tests folder](tests/playbook.device.demo.yaml) \n\n**cv_image [testing]**\n - `add`, `delete`, and `show` image bundles\n\n  Image bundles must exist in CVP already, this module will allow the manipulation of them in CVP.\n  Add and Delete will allow bundles to be applied or removed from Containers and devices\n  Show will provide information on the contents of the image bundle.\n\n**cv_tasks [testing]**\n - `add`, `delete`, and `show` tasks\n\n  Tasks must exist in CVP already, this module will allow the manipulation of them in CVP.\n  Add and Delete will allow Tasks to be executed or Canceled\n  Show will provide information on the current Status or a Task.\n  \n\n## Installation\n\n**CvpRac**\n\n  To use these modules you will need cvprac.\n  The official version can be found here: [Arista Networks cvprac](https://github.com/aristanetworks/cvprac)\n  CVPRACV2 in this repository is a tweaked version with additional functionality that has been requested in the official version.\n\n  Installation notes are available on [installation page](INSTALLATION.md)\n\n\u003e Note: Repository is a pre-release work. A custom installation is required to run non standard installation process for python and ansible.\n\n## Example playbook\n\nThis example outlines how to use Ansible to create a device container on Arista CloudVision.\n\n```yaml\n---\n- name: Test cv_container\n  hosts: cvp\n  connection: local\n  gather_facts: no\n  vars:\n    - container_name: automated_container\n    - container_parent: Tenant\n  tasks:\n    # Create container under root container\n    - name: Create a container on CVP.\n      cv_container:\n        host: '{{ansible_host}}'\n        username: '{{cvp_username}}'\n        password: '{{cvp_password}}'\n        protocol: https\n        container: \"{{container_name}}\"\n        parent: \"{{container_parent}}\"\n        action: add\n    \n    # Look for container deleted previously.\n    # If result contains, then we assume there is en error\n    - name: Show a container on CVP.\n      cv_container:\n        host: '{{ansible_host}}'\n        username: '{{cvp_username}}'\n        password: '{{cvp_password}}'\n        protocol: https\n        container: \"{{container_name}}\"\n        parent: \"{{container_parent}}\"\n        action: show\n      register: cvp_result\n\n    - name: Display cv_container show result\n      debug:\n        msg: \"{{cvp_result}}\"\n```\n\n\n# Resources\n\n  Other CVP Ansible modules can be found here: [Arista EOS+ Ansible Modules](https://github.com/arista-eosplus/ansible-cloudvision)\n\n# License\n\nProject is published under [BSD License](LICENSE).\n\n# Ask question or report issue\n\nPlease open an issue on Github this is the fastest way to get an answer.\n\n# Contribute\n\nContributing pull requests are gladly welcomed for this repository. If you are planning a big change, please start a discussion first to make sure we’ll be able to merge it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkop%2Fcvp_ansible_modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworkop%2Fcvp_ansible_modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkop%2Fcvp_ansible_modules/lists"}